Class GraphPathsSearch
- Namespace
- AlgorithmsSW.Graph
- Assembly
- AlgorithmsSW.dll
public abstract class GraphPathsSearch
- Inheritance
-
GraphPathsSearch
- Derived
-
- Inherited Members
-
- Extension Methods
-
Constructors
GraphPathsSearch(IReadOnlyGraph, int)
protected GraphPathsSearch(IReadOnlyGraph graph, int sourceVertex)
Parameters
graph
IReadOnlyGraph
sourceVertex
int
Fields
EdgeOnPathFromSourceTo
protected readonly int[] EdgeOnPathFromSourceTo
Field Value
- int[]
Marked
protected readonly bool[] Marked
Field Value
- bool[]
SourceVertex
protected readonly int SourceVertex
Field Value
- int
Properties
HasPathTo
public IReadOnlyList<bool> HasPathTo { get; }
Property Value
- IReadOnlyList<bool>
MarkedVertexes
public IEnumerable<int> MarkedVertexes { get; }
Property Value
- IEnumerable<int>
Methods
GetPathTo(int)
public IEnumerable<int> GetPathTo(int targetVertex)
Parameters
targetVertex
int
Returns
- IEnumerable<int>
TryGetPathTo(int, out IEnumerable<int>?)
public bool TryGetPathTo(int targetVertex, out IEnumerable<int>? path)
Parameters
targetVertex
int
path
IEnumerable<int>
Returns
- bool