Exemple #1
0
        public void TestDeleteUndirectEdge_ToFrom()
        {
            GraphWirth a        = new GraphWirth();
            bool       expected = true;

            a.AddVertex(0);
            a.AddDirectEdge(1, 2, 0);
            bool actual = a.DeleteDirectEdge(2, 1);

            Assert.AreEqual(expected, actual, "Error deleting undirect edge.");
        }
Exemple #2
0
        public void TestDeleteDirectEdge_ToFrom()
        {
            GraphWirth a        = new GraphWirth();
            bool       expected = false;

            a.AddVertex(0);
            a.AddDirectEdge(1, 2, 0);
            bool actual = a.DeleteDirectEdge(2, 1);

            Assert.AreEqual(expected, actual, "Incorrect order of vertexes while deleting direct edge.");
        }