Package edu.uci.ics.jung.samples
Class GraphFromGraphMLDemo
java.lang.Object
edu.uci.ics.jung.samples.GraphFromGraphMLDemo
Demonstrates loading (and visualizing) a graph from a GraphML file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
A nested class to demo the GraphMouseListener finding the right vertices after zoom/pan -
Field Summary
FieldsModifier and TypeFieldDescription(package private) VisualizationViewer
<Number, Number> the visual component and renderer for the graph -
Constructor Summary
ConstructorsConstructorDescriptionGraphFromGraphMLDemo
(String filename) Creates an instance showing a simple graph with controls to demonstrate the zoom features. -
Method Summary
-
Field Details
-
vv
the visual component and renderer for the graph
-
-
Constructor Details
-
GraphFromGraphMLDemo
public GraphFromGraphMLDemo(String filename) throws ParserConfigurationException, SAXException, IOException Creates an instance showing a simple graph with controls to demonstrate the zoom features.- Parameters:
filename
- the file containing the graph data we're reading- Throws:
ParserConfigurationException
- if a SAX parser cannot be constructedSAXException
- if the SAX parser factory cannot be constructedIOException
- if the file cannot be read
-
-
Method Details
-
main
public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException - Parameters:
args
- if this contains at least one element, the first will be used as the file to read- Throws:
ParserConfigurationException
- if a SAX parser cannot be constructedSAXException
- if the SAX parser factory cannot be constructedIOException
- if the file cannot be read
-