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

            g.RemoveEdge <string, string>(null);
        }
示例#3
0
        public void testRemoveEdgeNotExists()
        {
            AdjacencyListGraph <string, string> g = graph();

            Assert.IsFalse(g.RemoveEdge(e1));
        }