示例#1
0
        public void testNodeSetMultiplestrings()
        {
            AdjacencyListGraph <string, string> g = graph(n1, n2, n3, n4);

            Assert.IsTrue(g.NodeSet().Contains(n1));
            Assert.IsTrue(g.NodeSet().Contains(n2));
            Assert.IsTrue(g.NodeSet().Contains(n3));
            Assert.IsTrue(g.NodeSet().Contains(n4));
        }
示例#2
0
        public void testNodeSetEmptystrings()
        {
            AdjacencyListGraph <string, string> g = graph();

            Assert.AreEqual(0, g.NodeSet().Count);
        }