Not display self-loops
21 Sep
2018
21 Sep
'18
5:42 p.m.
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
24 Sep
24 Sep
8:02 a.m.
Am 21.09.18 um 19:42 schrieb Lietz, Haiko:
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.
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 -- Tiago de Paula Peixoto <tiago@skewed.de>
2640
Age (days ago)
2643
Last active (days ago)
1 comments
2 participants
participants (2)
-
Lietz, Haiko -
Tiago de Paula Peixoto