Not display self-loops

Hi all,

Can anybody give me a hint how I can toggle off (not display) self-loops / reflexive links when drawing a graph using

state.draw()

where state is a stochastic blockmodel.

I can't find it in here:

https://graph-tool.skewed.de/static/doc/draw.html

Many thanks

Haiko

attachment.html (2.88 KB)

There is no option to toggle it. But you can filter them out:

    u = GraphView(g, efilt=label_self_loops(g).fa == 0)
    state = state.copy(g=u)
    state.draw()

Best,
Tiago