Depth-First Traversal (or Search)
Static member | Description |
Full Usage:
DFS.ofDiGraph starting graph
Parameters:
'NodeKey
graph : DiGraph<'NodeKey, 'NodeData, 'EdgeData>
Returns: seq<'NodeKey * 'NodeData>
|
Traverses nodes reachable from given node in a Depth-First Traversal (or Search)
Nodekey for starting the BFS traversal.
The graph to traverse.
|
Full Usage:
DFS.ofDiGraphUndirected starting graph
Parameters:
'NodeKey
graph : DiGraph<'NodeKey, 'NodeData, 'EdgeData>
Returns: seq<'NodeKey * 'NodeData>
|
Same as ofDiGraph except it traverses nodes along in and out edges.
This is useful for finding components and other operations where the direction of the edge shouldnt matter.
Nodekey for starting the BFS traversal.
The graph to traverse.
|
Full Usage:
DFS.ofFGraph starting graph
Parameters:
'NodeKey
-
Nodekey for starting the BFS traversal.
graph : FGraph<'NodeKey, 'NodeData, 'EdgeData>
-
The graph to traverse.
Returns: seq<'NodeKey * 'NodeData>
Sequence of node key and node data
|
|