📖 INDEX
LOADING ENGINE...
csgraph.depth_first_order()
AI & DATA SCIENCE // csgraph-depth-first-order
Return a depth-first ordering starting with specified node.
Syntax
from scipy.sparse.csgraph import depth_first_order
node_array, pred = depth_first_order(graph, 0)Examples
Example 01Basic Usage
from scipy.sparse.csgraph import depth_first_order
node_array, pred = depth_first_order(graph, 0)Best Practices
- Refer to SciPy documentation for advanced mathematical methods.
- Ensure your NumPy array types match the required formats for SciPy functions.