예제 #1
0
        public void TestVerticeCanPointToMultipleVertices()
        {
            var graph = new AdjacencyListGraph(3);

            graph.AddArrow(0, 1)
            .AddArrow(0, 2);

            Assert.That(graph.VerticesCount == 3);
            Assert.That(graph.HasArrow(0, 1));
            Assert.That(graph.HasArrow(0, 2));
        }