Class BellmanFordShortestPath<T, W>
A Bellman Ford algorithm implementation.
Inheritance
BellmanFordShortestPath<T, W>
Assembly: Advanced.Algorithms.dll
Syntax
public class BellmanFordShortestPath<T, W>
where W : IComparable
Type Parameters
Constructors
BellmanFordShortestPath(IShortestPathOperators<W>)
Declaration
public BellmanFordShortestPath(IShortestPathOperators<W> operators)
Parameters
Methods
GetShortestPath(WeightedDiGraph<T, W>, T, T)
Get shortest distance to target.
Declaration
public ShortestPathResult<T, W> GetShortestPath(WeightedDiGraph<T, W> graph, T source, T destination)
Parameters
Returns