.clearing graphs

Feb 3, 2010 at 10:49 AM
Edited Feb 4, 2010 at 12:40 AM

Clearing a graph  [.Clear()] referenced by graphlayout.Graph

leaves ghost nodes even when using graphlayout.Graph = null;

and then reattaching the same graph object (cleared and new vertex added);

 

a related issue:

 

graphlayout.Graph = g1;

...

graphlayout.Graph = null;

graphlayout.Graph = g2;

...

adding vertex to g1 cause exception to be raised in method: protected virtual void InitializePosition(TVertex vertex)

eventhough g1 has been disconnected with the ".Graph = null" statement above.