public void testRemoveEdgeSimple() { AdjacencyListGraph <string, string> g = graph(n1, n2); g.AddEdge(e1); Assert.IsTrue(g.ContainsEdge(e1)); Assert.IsTrue(g.RemoveEdge(e1)); Assert.IsFalse(g.ContainsEdge(e1)); Assert.IsFalse(g.EdgeExists(n1, n2)); }
public void testRemovestringNull() { AdjacencyListGraph <string, string> g = graph(); g.RemoveEdge <string, string>(null); }
public void testRemoveEdgeNotExists() { AdjacencyListGraph <string, string> g = graph(); Assert.IsFalse(g.RemoveEdge(e1)); }