.clearing graphs

Feb 3, 2010 at 9:49 AM
Edited Feb 3, 2010 at 11:40 PM

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.