FubarDevelopment / QuickGraph

Fork of https://quickgraph.codeplex.com/
Microsoft Public License
9 stars 2 forks source link

CP-24829: Bug in QuickGraph.UndirectedGraph`2.AddEdge(TEdge edge) #141

Open fubar-coder opened 6 years ago

fubar-coder commented 6 years ago

From unknown CodePlex user on Wednesday, 23 October 2013 05:27:36

Hello, this simple code produces KeyNotFoundException:

var gg = new UndirectedGraph<int, UndirectedEdge<int>>();
gg.AddEdge(new UndirectedEdge<int>(1,2));

Update: Maybe it's WAD and this method expects vertices to be already in the adjacency dictionary.