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
nodeIDirectedGraphNode<TKey, TNodeValue, TEdgeValue>Node to check.
Returns
- bool
true when
nodeis considered to be a root node, otherwise false.
Type Parameters
TKeyGraph key type.
TNodeValueGraph node value type.
TEdgeValueGraph edge value type.