Display SBM state layers

Hi all,

When I plot the state of a layered blockmodel there are as many loops as there are layers, so everything is correct.

state_layers.draw() plots the blocked multigraph as attached.

How can I plot the states for the individual layers?

Many thanks

Haiko

attachment.html (739 Bytes)

state_layers.png

The simplest option is again to use filtering:

  u = GraphView(g, efilt=ec.fa == l) # filter only edges from layer l
  lstate = state.copy(g=u) # block state w/ same partition
  lstate.draw()

Best,
Tiago