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

            g.RemoveEdge <string, string>(null);
        }
Exemplo n.º 3
0
        public void testRemoveEdgeNotExists()
        {
            AdjacencyListGraph <string, string> g = graph();

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