|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.algo.io.JungIOUtils
public class JungIOUtils
Some utility methods for handling GraphML in Jung.
Constructor Summary | |
---|---|
JungIOUtils()
|
Method Summary | |
---|---|
static edu.uci.ics.jung.graph.Graph |
loadGraphFile(java.io.File filename)
Loads a Graph from a GraphML file. |
static edu.uci.ics.jung.graph.Graph |
loadGraphFile(java.net.URL url)
Loads a Graph from a GraphML file. |
static edu.uci.ics.jung.graph.Graph |
loadGraphResource(java.lang.String filename)
Loads a Graph from a GraphML resource. |
static void |
writeGraphFile(edu.uci.ics.jung.graph.Graph graph,
java.io.File filename)
Writes a Jung Graph to a file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JungIOUtils()
Method Detail |
---|
public static edu.uci.ics.jung.graph.Graph loadGraphFile(java.io.File filename) throws java.io.IOException
filename
- The name of the GraphML file to load
java.io.IOException
- if file is not foundpublic static edu.uci.ics.jung.graph.Graph loadGraphFile(java.net.URL url) throws java.io.IOException
url
- The name of the GraphML file to load
java.io.IOException
- if file is not foundpublic static edu.uci.ics.jung.graph.Graph loadGraphResource(java.lang.String filename) throws java.io.IOException
filename
and load the
corresponding GraphML file resource.
filename
- The name of the GraphML file to load
java.io.IOException
- if resource is not foundpublic static void writeGraphFile(edu.uci.ics.jung.graph.Graph graph, java.io.File filename) throws java.io.IOException
graph
- A Jung Graphfilename
- location of the output file
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |