goldman.graph
Class NegativeWeightEdgeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
NegativeWeightEdgeException()
           
NegativeWeightEdgeException(String msg)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NegativeWeightEdgeException

public NegativeWeightEdgeException()

NegativeWeightEdgeException

public NegativeWeightEdgeException(String msg)