Class PathExtensions
- Namespace
- AlgorithmsSW.EdgeWeightedDigraph
- Assembly
- AlgorithmsSW.dll
public static class PathExtensions
- Inheritance
-
PathExtensions
- Inherited Members
Methods
TryFindCycle(IRandomAccessList<int>, out int, out int)
public static bool TryFindCycle(this IRandomAccessList<int> path, out int startIndex, out int endIndex)
Parameters
path
IRandomAccessList<int>startIndex
intendIndex
int
Returns
TryFindCycle<TWeight>(DirectedPath<TWeight>, TWeight, Func<TWeight, TWeight, TWeight>, out DirectedPath<TWeight>?)
public static bool TryFindCycle<TWeight>(this DirectedPath<TWeight> path, TWeight zero, Func<TWeight, TWeight, TWeight> add, out DirectedPath<TWeight>? cycle) where TWeight : INumber<TWeight>
Parameters
path
DirectedPath<TWeight>zero
TWeightadd
Func<TWeight, TWeight, TWeight>cycle
DirectedPath<TWeight>
Returns
Type Parameters
TWeight
TryGetPath<TWeight>(IEdgeWeightedDigraph<TWeight>, IEnumerable<int>, out DirectedPath<TWeight>?)
public static bool TryGetPath<TWeight>(IEdgeWeightedDigraph<TWeight> graph, IEnumerable<int> vertexPath, out DirectedPath<TWeight>? path) where TWeight : INumber<TWeight>
Parameters
graph
IEdgeWeightedDigraph<TWeight>vertexPath
IEnumerable<int>path
DirectedPath<TWeight>
Returns
Type Parameters
TWeight