updating graph plot dynamically

Sorry for the delay, for some reason your message did not make it to the
mailing list.

Dave wrote

Hi all. I'm trying to write a simple toy program to explore dynamic graph
plotting.
What I'll need in the future is to use this program to update the
visualization of a graph as long as nodes and vertices are generated, one
by one. Follows what I wrote, taking a lot from the examples.
unfortuantely, the plot is not updated, it keeps showing vertices and
nodes I added outside the update_state function.
Can please someone tell me where I'm wrong?
thanks in advance!

The reason why it didn't work is because you did not take care of providing
the positions for the new vertices. See attached for a version that does
what (I think) you wanted.

Best,
Tiago

dynamic.py
<http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/n4025940/dynamic.py&gt;