From unknown CodePlex user on Saturday, 19 November 2011 20:30:44
Hi all!
This may be a problem:
var g = new UndirectedGraph<int, UndirectedEdge>();
g.AddVerticesAndEdge(new UndirectedEdge(1, 2));
var c = g.ContainsEdge(2, 1); // false
The last line returns false, however since this is an undirected graph, IMHO should really return true. Am I wrong?
From unknown CodePlex user on Saturday, 19 November 2011 20:30:44
Hi all! This may be a problem: var g = new UndirectedGraph<int, UndirectedEdge>();
g.AddVerticesAndEdge(new UndirectedEdge(1, 2));
var c = g.ContainsEdge(2, 1); // false
The last line returns false, however since this is an undirected graph, IMHO should really return true. Am I wrong?