goldman.graph
Class NegativeWeightEdgeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
goldman.graph.NegativeWeightEdgeException
- All Implemented Interfaces:
- Serializable
public class NegativeWeightEdgeException
- extends Exception
The NegativeWeightEdgeException
is thrown when a graph algorithm that
should only be applied on a weighted graph without any negative weight edges
(e.g., Dijkstra's single-source shortest path algorithm) whenever
a negative weight edge that is encountered.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NegativeWeightEdgeException
public NegativeWeightEdgeException()
NegativeWeightEdgeException
public NegativeWeightEdgeException(String msg)