edu.uci.ics.jung.samples
Class SimpleGraphDraw

java.lang.Object
  extended by 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 Summary
SimpleGraphDraw()
           
 
Method Summary
static Graph getGraph()
          Generates a graph: in this case, reads it from the file "samples/datasetsgraph/simple.net"
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGraphDraw

public SimpleGraphDraw()
Method Detail

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


Copyright © 2009. All Rights Reserved.