|
@@ -75,6 +75,6 @@ graph = {'A': ['B', 'C'],
|
|
graph1 = GraphSearch(graph)
|
|
graph1 = GraphSearch(graph)
|
|
|
|
|
|
|
|
|
|
-print graph1.find_path('A', 'D')
|
|
|
|
-print graph1.find_all_path('A', 'D')
|
|
|
|
-print graph1.find_shortest_path('A', 'D')
|
|
|
|
|
|
+print(graph1.find_path('A', 'D'))
|
|
|
|
+print(graph1.find_all_path('A', 'D'))
|
|
|
|
+print(graph1.find_shortest_path('A', 'D'))
|