Class Algorithms
- Namespace
- AlgorithmsSW.Digraph
- Assembly
- AlgorithmsSW.dll
public static class Algorithms
- Inheritance
-
Algorithms
- Inherited Members
Methods
AsGraph(IReadOnlyDigraph)
public static IReadOnlyGraph AsGraph(this IReadOnlyDigraph graph)
Parameters
graph
IReadOnlyDigraph
Returns
ConnectComponents(IDigraph)
Add edges to a directed graph to make it strongly connected.
public static void ConnectComponents(this IDigraph graph)
Parameters
graph
IDigraphThe graph to make strongly connected.
IsTopologicalOrder(IDigraph, IEnumerable<int>)
[ExerciseReference(4, 2, 9)]
public static bool IsTopologicalOrder(this IDigraph digraph, IEnumerable<int> order)
Parameters
digraph
IDigraphorder
IEnumerable<int>
Returns
Reverse(IDigraph)
Reverses a directed graph.
public static IDigraph Reverse(this IDigraph digraph)
Parameters
digraph
IDigraphThe graph to reverse.