BellmanFordSPGetNegativeCycle Method |
Returns a negative cycle reachable from the source vertex s, or null
if there is no such cycle.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public IEnumerable<DirectedEdge> GetNegativeCycle()
Return Value
Type:
IEnumerableDirectedEdgea negative cycle reachable from the soruce vertex
s
as an iterable of edges, and
null if there is no such cycle
See Also