

Public Member Functions | |
| void | testSortDirectedAcyclicGraph () |
| void | testFailOnCyclicGraph () |
Private Member Functions | |
| List | createGarmentVertices (boolean withCycle) |
Tests for TopologicalSort.
| List alma::acs::algorithms::TopologicalSortTest::createGarmentVertices | ( | boolean | withCycle | ) | [inline, private] |
References alma::acs::algorithms::Vertex::addAdjacentVertex().
Referenced by testFailOnCyclicGraph(), and testSortDirectedAcyclicGraph().
| void alma::acs::algorithms::TopologicalSortTest::testFailOnCyclicGraph | ( | ) | [inline] |
| void alma::acs::algorithms::TopologicalSortTest::testSortDirectedAcyclicGraph | ( | ) | [inline] |
Sorts professor Bumstead's clothing as in Cormen, "Introduction to Algorithms"
References createGarmentVertices(), alma::acs::algorithms::Vertex::getUserObject(), alma::acs::algorithms::TopologicalSort::hasCycles(), and alma::acs::algorithms::TopologicalSort::sort().
1.6.2