Ejemplo n.º 1
0
        public void Vertex_Enumerator()
        {
            DirectedGraph <string, int> graph = new DirectedGraph <string, int>();

            graph.AddVertex("A");
            graph.AddVertex("B");

            Assert.IsTrue(graph.Any(x => x == "A"));
            Assert.IsTrue(graph.Any(x => x == "B"));
        }