示例#1
0
        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());
        }
示例#2
0
        public void testIsEmptyOnestring()
        {
            AdjacencyListGraph <string, string> g = graph(n1);

            Assert.IsFalse(g.IsEmpty());
        }
示例#3
0
        public void testIsEmptyZerostrings()
        {
            AdjacencyListGraph <string, string> g = graph();

            Assert.IsTrue(g.IsEmpty());
        }