Пример #1
0
        public void Test_RemoveEdge()
        {
            GraphVizProcessor gvp = new GraphVizProcessor();

            gvp.graph = new Graph(GraphType.Digraph, new Stmt_list());

            gvp.AddEdge("a", "b");
            gvp.RemoveEdge("a", "b");

            if (gvp.EdgeExists("a", "b"))
            {
                Assert.Fail("Edge found after removal.");
            }
            if (!gvp.NodeExists("a"))
            {
                Assert.Fail("Node not found after edge removal.");
            }
            if (!gvp.NodeExists("b"))
            {
                Assert.Fail("Node not found after edge removal.");
            }
        }