24 Feb
2020
24 Feb
'20
6:39 p.m.
Am 21.02.20 um 10:11 schrieb kant kodali:
This doesn't seem to work I get RuntimeError: invalid matrix (not invertible) Any idea? it looks to me this one line g=random_graph(150,lambda:1+poisson(5),directed=False) makes a difference? But I want to create my own graph like the code above.
You are computing the initial layout on an empty graph, before you add any edges. You need first to add the edges, and then compute the initial layout.
Also what does idle_add do? it calls update whenever it is idle? which means it redraws whenever it is idle?
Yes. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>