public void testClear() { AdjacencyListGraph <string, string> g = graph(n1, n2, n3, n4); g.AddEdge(e1); g.AddEdge(e2); g.AddEdge(e3); g.AddEdge(e4); g.Clear(); Assert.IsTrue(g.IsEmpty()); }
public void testIsEmptyOnestring() { AdjacencyListGraph <string, string> g = graph(n1); Assert.IsFalse(g.IsEmpty()); }
public void testIsEmptyZerostrings() { AdjacencyListGraph <string, string> g = graph(); Assert.IsTrue(g.IsEmpty()); }