prefuse.data.io
Class GraphMLWriter
java.lang.Object
prefuse.data.io.AbstractGraphWriter
prefuse.data.io.GraphMLWriter
- All Implemented Interfaces:
- GraphWriter
public class GraphMLWriter
- extends AbstractGraphWriter
GraphWriter instance that writes a graph file formatted using the
GraphML file format. GraphML is an XML format supporting graph
structure and typed data schemas for both nodes and edges. For more
information about the format, please see the
GraphML home page.
The GraphML spec only supports the data types int
,
long
, float
, double
,
boolean
, and string
. An exception will
be thrown if a data type outside these allowed types is
encountered.
- Author:
- jeffrey heer
Nested Class Summary |
static interface |
GraphMLWriter.Tokens
String tokens used in the GraphML format. |
Method Summary |
void |
writeGraph(Graph graph,
java.io.OutputStream os)
Write a graph from the given OutputStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphMLWriter
public GraphMLWriter()
writeGraph
public void writeGraph(Graph graph,
java.io.OutputStream os)
throws DataIOException
- Description copied from interface:
GraphWriter
- Write a graph from the given OutputStream.
- Parameters:
graph
- the Graph to writeos
- the OutputStream to write the graph to
- Throws:
DataIOException
- See Also:
GraphWriter.writeGraph(prefuse.data.Graph, java.io.OutputStream)
Copyright © 2007 Regents of the University of California