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

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

There is a newer version: 2.6.0
Show newest version
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 - 2025 Weber Informatics LLC | Privacy Policy