Click or drag to resize
BellmanFordSP Methods

The BellmanFordSP type exposes the following members.

Methods
  NameDescription
Public methodDistTo
Returns the length of a shortest path from the source vertex s to vertex v.
Public methodGetNegativeCycle
Returns a negative cycle reachable from the source vertex s, or null if there is no such cycle.
Public methodHasPathTo
Is there a path from the source s to vertex v?
Public methodStatic memberMainTest
Demo test the BellmanFordSP data type.
Public methodPathTo
Returns a shortest path from the source s to vertex v.
Top
See Also