Class SimpleGraphDraw

java.lang.Object
edu.uci.ics.jung.samples.SimpleGraphDraw

public class SimpleGraphDraw extends Object
A class that shows the minimal work necessary to load and visualize a graph.
  • Constructor Details

    • SimpleGraphDraw

      public SimpleGraphDraw()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException
    • getGraph

      public static Graph getGraph() throws IOException
      Generates a graph: in this case, reads it from the file "samples/datasetsgraph/simple.net"
      Returns:
      A sample undirected graph
      Throws:
      IOException - if there is an error in reading the file