Exemplo n.º 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());
        }
Exemplo n.º 2
0
        public void testIsEmptyOnestring()
        {
            AdjacencyListGraph <string, string> g = graph(n1);

            Assert.IsFalse(g.IsEmpty());
        }
Exemplo n.º 3
0
        public void testIsEmptyZerostrings()
        {
            AdjacencyListGraph <string, string> g = graph();

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