tests.traversal.test_breadthfirst#
Unit tests for traversal.breadthfirst module.
Functions
Ensure BFS doesn't return anything when the universe is empty. |
|
|
Ensure BFS finds the starting vertex, if that's what it's given. |
|
Ensure BFS works with universe = None. |
|
Ensure ValueError raised on a starting vertex outside the universe. |
|
Ensure we can find vertices with a breadth-first search. |
Ensure we don't find a vertex that doesn't exist. |
|
|
Ensure we don't find anything outside of the universe. |
|
Ensure we don't find the wrong attribute. |
Ensure no traversal on an empty universe. |
|
|
Make sure traversals work right, starting from any given node. |
|
Ensure BFT works when universe = None. |
|
Ensure starting on a Vertex outside the universe raises an error. |
|
Stress-test breadth first traversal. |
|
Ensure we don't traverse outside the universe. |