Skip to content

Instantly share code, notes, and snippets.

@lshort
Created June 30, 2014 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lshort/cadcbb8537c65a71ff36 to your computer and use it in GitHub Desktop.
Save lshort/cadcbb8537c65a71ff36 to your computer and use it in GitHub Desktop.
test_example
unordered_map<string,string> expected_results_y {
{"BFS","BFS visiting {A,B,E,C,D,}"},
{"DFS","DFS visiting {A,E,B,C,D,}"},
{"Topsort", "Topsort visiting {A,E,B,C,D,}"},
{"Dijkstra", "Dijkstra visiting {A,E,D,}"},
{"Bellman", "Bellman visiting {(E:A),(D:E),(C:B),(B:A),(A:-),}"}
};
graph_tests(y,'A','D', none, expected_results_y);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment