IGraphAccessible<'V, 'E> Type
Represents a read-only graph information accessor. This interface provides a way to access the information of a graph without modifying it.
Instance members
| Instance member |
Description
|
|
Gets an array of all edges in the graph.
|
|
|
|
|
|
Finds a vertex that has the given data value from the graph. It will raise an exception if such a vertex does not exist. Note that this function should be used only when one knows each vertex in the graph has a unique data value.
|
|
|
Full Usage:
this.FoldEdge
Parameters:
'a -> Edge<'V, 'E> -> 'a
arg1 : 'a
Returns: 'a
Modifiers: abstract |
Folds every edge in the graph (the order can be arbitrary).
|
Full Usage:
this.FoldVertex
Parameters:
'a -> IVertex<'V> -> 'a
arg1 : 'a
Returns: 'a
Modifiers: abstract |
Folds every vertex (the order can be arbitrary).
|
|
|
|
|
|
Gets the implementation type of this graph.
|
Full Usage:
this.IsEmpty
Returns: bool
Modifiers: abstract |
Checks if this graph is empty. A graph is empty when there is no vertex in the graph.
|
|
Iterates every edge in the graph (the order can be arbitrary).
|
|
Iterates every vertex (the order can be arbitrary).
|
|
Gets exactly one root vertex of this graph. If there are multiple root vertices, this will raise an exception.
|
Full Usage:
this.Size
Returns: int
Modifiers: abstract |
Gets the number of vertices.
|
|
|
|
|
Full Usage:
this.TryFindVertexByData
Parameters:
'V
Returns: IVertex<'V> option
Modifiers: abstract |
Finds a vertex that has the given VertexData from the graph. This function does not raise an exception unlike FindVertexByData.
|
|
|
|
Gets a collection of unreachable vertices in the graph.
|
|
Gets an array of all vertices in the graph.
|
B2R2