Package edu.uci.ics.jung.samples
Class GraphFromGraphMLDemo
- java.lang.Object
-
- edu.uci.ics.jung.samples.GraphFromGraphMLDemo
-
public class GraphFromGraphMLDemo extends java.lang.Object
Demonstrates loading (and visualizing) a graph from a GraphML file.- Author:
- Tom Nelson
-
-
Constructor Summary
Constructors Constructor Description GraphFromGraphMLDemo(java.lang.String filename)
Creates an instance showing a simple graph with controls to demonstrate the zoom features.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
-
-
-
Constructor Detail
-
GraphFromGraphMLDemo
public GraphFromGraphMLDemo(java.lang.String filename) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.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:
javax.xml.parsers.ParserConfigurationException
- if a SAX parser cannot be constructedorg.xml.sax.SAXException
- if the SAX parser factory cannot be constructedjava.io.IOException
- if the file cannot be read
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
- Parameters:
args
- if this contains at least one element, the first will be used as the file to read- Throws:
javax.xml.parsers.ParserConfigurationException
- if a SAX parser cannot be constructedorg.xml.sax.SAXException
- if the SAX parser factory cannot be constructedjava.io.IOException
- if the file cannot be read
-
-