private static void TestBfsDirectedSmallGraph(string path) { IDirectedGraph <int> graph = null; using (var reader = new StreamReader(path)) { graph = GraphHelper.ParseFromTextDirectedGraph(reader, saveReversedVersion: false); Console.WriteLine("Graph initiated!"); Console.WriteLine(graph); } foreach (int exploredNode in GraphSearch.BreadthFirst(graph, 1)) { Console.WriteLine(exploredNode); } }