All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.routing.algorithm.astar.NegativeWeightException Maven / Gradle / Ivy

package org.opentripplanner.routing.algorithm.astar;

/**
 * This exception is thrown when an edge has a negative weight. Dijkstra's
 * algorithm (and A*) don't work on graphs that have negative weights.  This
 * exception almost always indicates a programming error, but could be 
 * caused by bad GTFS data.
 */
public class NegativeWeightException extends RuntimeException {

    private static final long serialVersionUID = -1018391017439852795L;

    public NegativeWeightException(String message) {
        super(message);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy