Class ShortestPathDemo

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ShortestPathDemo extends JPanel
Demonstrates use of the shortest path algorithm and visualization of the results.
See Also:
  • Field Details

  • Constructor Details

    • ShortestPathDemo

      public ShortestPathDemo()
  • Method Details

    • isBlessed

      boolean isBlessed(Number e)
    • setUpControls

      private JPanel setUpControls()
    • getSelectionBox

      private Component getSelectionBox(boolean from)
    • drawShortest

      protected void drawShortest()
    • main

      public static void main(String[] s)
    • getGraph

      Graph<String,Number> getGraph()
      Returns:
      the graph for this demo