The given key was not present in the dictionary

Jan 26, 2012 at 10:14 AM

I get this inner exception when I make changes on the graph, here is the stack trace: 

at System.Collections.Generic.Dictionary`2.get_Item(TKey key)   

at QuickGraph.BidirectionalGraph`2.ContainsEdge(TEdge edge) 

at GraphSharp.Controls.GraphLayout`3.HighlightTriggerEventHandler(Object sender, HighlightTriggeredEventArgs args)

How can I get passed this problem?

Jan 26, 2012 at 3:24 PM
Edited Jan 26, 2012 at 9:05 PM

I had this message when i tried to remove a not existing vertex or edge in my graph.

When did this message appear?

Jan 29, 2012 at 7:56 AM

I get this message a while after removing the existing graph and displaying the new graph, not while removing... any idea?

Jan 29, 2012 at 12:17 PM

I solved it, all i had to do is:

graphLayout.Children.Clear();

before I do changes on the graph