tests.sorting.test_toposort_general#
Unit tests for topological sorts which work on all toposorting algorithms.
Quirks unique to specific algorithms (Kahns, DFS-based, etc) are tested in their own modules.
Functions
|
Check that a contains-cycles error is raised when a graph contains a cycle. |
Tests topological sort throws an appropriate error when the user selects a backend that doesn't exist. |
|
|
Verify expected behavior when passing in an empty graph (empty return). |
|
Check the filterfunc-traverse-via operator of the topological sorts works as intended. |
|
Borderline smoke-test level check of topological sort correctness. |