Class BellmanFordShortestPath<T, W>
A Bellman Ford algorithm implementation.
Inheritance
BellmanFordShortestPath<T, W>
Assembly: Advanced.Algorithms.dll
Syntax
public class BellmanFordShortestPath<T, W> : object where W : IComparable
Type Parameters
Constructors
BellmanFordShortestPath(IShortestPathOperators<W>)
Declaration
public BellmanFordShortestPath(IShortestPathOperators<W> operator)
Parameters
Methods
FindShortestPath(IDiGraph<T>, T, T)
Find shortest distance to target.
Declaration
public ShortestPathResult<T, W> FindShortestPath(IDiGraph<T> graph, T source, T destination)
Parameters
Type |
Name |
Description |
IDiGraph<T> |
graph |
|
T |
source |
|
T |
destination |
|
Returns