Functions for vertices of both directed and undirected graphs
Function or value | Description |
|
|
|
|
|
|
|
|
|
|
Lookup a labeled vertex in the graph. Raising KeyNotFoundException if no binding exists in the graph.
|
|
Full Usage:
fold state folder g
Parameters:
'T
folder : 'T -> 'Vertex -> 'Label -> 'T
g : Graph<'Vertex, 'Label, 'Edge>
Returns: 'T
|
Applies a function folder to each vertex of the graph, threading an accumulator argument through the computation.
|
Full Usage:
iter action g
Parameters:
'Vertex -> 'Label -> unit
g : Graph<'Vertex, 'Label, 'Edge>
|
|
Full Usage:
iteri action g
Parameters:
int -> 'Vertex -> 'Label -> unit
g : Graph<'Vertex, 'Label, 'Edge>
|
Performs a given function on every vertex and its label of a graph. The mapping function also receives an ascending integer index.
|
|
|
|
|
|
|
|
|
|
|
|
|