Am 24.08.21 um 18:01 schrieb Lietz, Haiko:
Dear all,

Given a NestedBlockState object called state, I can obtain the list of nested group belongings by

x = state.get_bs()

I can then order the partitions by

y = order_nested_partition_labels(x)

Is there a way to store the ordered labels in the original NestedBlockState object? How do I have to write that?

Just create a new NestedBlockState (or, equivalently, copy the from the old one):

  state = NestedBlockState(g, bs=y)

  or

  state = state.copy(bs=y)

Best,
Tiago


--
Tiago de Paula Peixoto <[email protected]>
_______________________________________________
graph-tool mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to