tests.traversal.test_depthfirst#
Unit tests for traversal.depthfirst module.
Functions
|
Ensure ValueError is raised on empty universes. |
Ensure we find the starting vertex, if it matches criteria. |
|
|
Ensure DFS works when universe = None. |
|
Ensure starting at a vertex outside of the universe causes an error. |
|
Test that we find vertices we should, and don't we shouldn't. |
Ensure we don't find a vertex outside of the universe. |
|
Ensure the attribute selection is working right. |
|
|
Make sure they do the same thing every time, given the same inputs. |
|
Test ValueError is thrown when universe is empty. |
|
Ensure the ff_result parameter works on depth-first traversals. |
|
Ensure the ff_via parameter works on depth-first traversals. |
Ensure the ff_result and ff_via parameter work together on depth-first traversals. |
|
|
Test ValueError is thrown when starting vertex is not in the universe. |
|
Depth-first traversal stress testing. |
|
Ensure we don't find vertices connected to the graph, but out of the universe. |
|
Test traversing from a given starting point, using the iterative implementation. |
|
Ensure DFTI work when universe = None. |
|
Test traversing from a given starting point, using the recursive implementation. |
|
Ensure DFTR work when universe = None. |