Return a depth-first ordering starting with specified node.
Note that a depth-first order is not unique. Furthermore, for graphs with cycles, the tree generated by a depth-first search is not unique either.
Parameters : | csgraph: array_like or sparse matrix :
i_start: int :
directed: bool, optional :
return_predecessors: bool, optional :
|
---|---|
Returns : | node_array: ndarray, one dimension :
predecessors: ndarray, one dimension :
|