private function getBestEffortTopographicSort(array $graph) { $detector = new TestAbstractDirectedGraph(); $detector->setTestData($graph); $detector->addNodes(array_keys($graph)); return $detector->getBestEffortTopographicallySortedNodes(); }