Package edu.uci.ics.jung.samples
Class SimpleGraphDraw
- java.lang.Object
-
- edu.uci.ics.jung.samples.SimpleGraphDraw
-
public class SimpleGraphDraw extends java.lang.Object
A class that shows the minimal work necessary to load and visualize a graph.
-
-
Constructor Summary
Constructors Constructor Description SimpleGraphDraw()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Graph
getGraph()
Generates a graph: in this case, reads it from the file "samples/datasetsgraph/simple.net"static void
main(java.lang.String[] args)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
- Throws:
java.io.IOException
-
getGraph
public static Graph getGraph() throws java.io.IOException
Generates a graph: in this case, reads it from the file "samples/datasetsgraph/simple.net"- Returns:
- A sample undirected graph
- Throws:
java.io.IOException
- if there is an error in reading the file
-
-