Package edu.uci.ics.jung.samples
Class SimpleGraphDraw
java.lang.Object
edu.uci.ics.jung.samples.SimpleGraphDraw
A class that shows the minimal work necessary to load and visualize a graph.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleGraphDraw
public SimpleGraphDraw()
-
-
Method Details
-
main
- Throws:
IOException
-
getGraph
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
-