net.walend.measured
Class GENegativeWeightCycleException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--net.walend.digraph.DigraphException
|
+--net.walend.digraph.path.PathException
|
+--net.walend.measured.MeasuredPathException
|
+--net.walend.measured.NegativeWeightCycleException
|
+--net.walend.measured.GENegativeWeightCycleException
- All Implemented Interfaces:
- java.io.Serializable
- public class GENegativeWeightCycleException
- extends NegativeWeightCycleException
- implements java.io.Serializable
An exception thrown by the Bellman-Ford test.
- Author:
- David Walend dfw1@cornell.edu
- See Also:
- Serialized Form
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
bestPath
private GEPath bestPath
alternatePath
private GEPath alternatePath
GENegativeWeightCycleException
public GENegativeWeightCycleException(GEPath bestPath,
int bestPathCost,
GEPath alternatePath,
int alternatePathCost,
java.lang.Object toNode)
getBestPath
public Path getBestPath()
- Specified by:
getBestPath
in class NegativeWeightCycleException
getAlternatePath
public Path getAlternatePath()
- Specified by:
getAlternatePath
in class NegativeWeightCycleException
Copyright (c) 2001, 2002, David Walend