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 <[email protected]>
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to