Class ShortestPathExample

java.lang.Object
org.graph4j.examples.ShortestPathExample

public class ShortestPathExample extends Object
We assume that there are locations described by the class Location. Locations may be connected to other locations by roads having a specified length. The problem is to find the shortest path between two specified locations.
Author:
Cristian Frăsinaru
  • Constructor Details

    • ShortestPathExample

      public ShortestPathExample()
  • Method Details

    • main

      public static void main(String[] args)