Performs a topological sort on the provided graph.
public static toposort ( Gliph\Graph\Digraph $graph, object | SplDoublyLinkedList $start = NULL ) : array | ||
$graph | Gliph\Graph\Digraph | |
$start | object | SplDoublyLinkedList | The starting point(s) for the toposort. @see DepthFirst::traverse() |
리턴 | array | A valid topologically sorted list for the provided graph. |