Class DirectedGraphNodeExtensions
- Namespace
- LfrlAnvil.Collections.Extensions
- Assembly
- LfrlAnvil.Collections.dll
Contains IDirectedGraphNode<TKey, TNodeValue, TEdgeValue> extension methods.
public static class DirectedGraphNodeExtensions
- Inheritance
-
DirectedGraphNodeExtensions
- Inherited Members
Methods
IsRoot<TKey, TNodeValue, TEdgeValue>(IDirectedGraphNode<TKey, TNodeValue, TEdgeValue>)
Checks whether or not the node
is a root node, that is a node that cannot be reached by any graph edge.
[Pure]
public static bool IsRoot<TKey, TNodeValue, TEdgeValue>(this IDirectedGraphNode<TKey, TNodeValue, TEdgeValue> node) where TKey : notnull
Parameters
node
IDirectedGraphNode<TKey, TNodeValue, TEdgeValue>Node to check.
Returns
- bool
true when
node
is considered to be a root node, otherwise false.
Type Parameters
TKey
Graph key type.
TNodeValue
Graph node value type.
TEdgeValue
Graph edge value type.