This project is read-only.

Toggling Graph

Jul 16, 2010 at 8:42 PM
Edited Jul 17, 2010 at 7:38 AM

Hi Could you give me a code sample that i can used to toggle graph

for eg i have two graphs declared as 



var ipG = new BidirectionalGraph<object, IEdge<object>>();

var wirelessG = new BidirectionalGraph<object, IEdge<object>>();

_graphToVisualize = wirelessG;




<graphsharp:GraphLayout x:Name="graphLayout" Graph="{Binding ElementName=root,Path=GraphToVisualize}" LayoutAlgorithmType="LinLog" OverlapRemovalAlgorithmType="FSA" HighlightAlgorithmType="Simple" />


Now i have two buttons if i click 1 it should show wirelessG if i click the later it should show ipG. 


The graph comes out perfectly but it sows the pervious graph for a second after the transition to the new graph


Aug 31, 2010 at 11:24 PM

I have the same when I switched to a different graph and the previous graph is still there.  Did you figure it out how to remove it?