public class GraphMLWriter extends java.lang.Object implements GraphWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphMLWriter.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GraphMLWriter.Builder |
build() |
void |
writeEdge(java.io.OutputStream outputStream,
Edge e)
Write an edge to a stream.
|
void |
writeGraph(java.io.OutputStream outputStream,
Graph g)
Write the data in a Graph to a GraphML OutputStream.
|
void |
writeVertex(java.io.OutputStream outputStream,
Vertex v)
Write a vertex to a stream without writing its edges.
|
void |
writeVertex(java.io.OutputStream outputStream,
Vertex v,
Direction direction)
Write a vertex to a stream with its associated edges.
|
void |
writeVertices(java.io.OutputStream outputStream,
Traversal<?,Vertex> traversal)
Write a vertex to a stream without writing its edges.
|
void |
writeVertices(java.io.OutputStream outputStream,
Traversal<?,Vertex> traversal,
Direction direction)
Write a list of vertices from a
Traversal to a stream with its associated edges. |
public void writeVertex(java.io.OutputStream outputStream,
Vertex v,
Direction direction)
throws java.io.IOException
GraphWriterwriteVertex in interface GraphWriteroutputStream - The stream to write to.v - The vertex to write.direction - If direction is null then no edges are written.java.io.IOExceptionpublic void writeVertex(java.io.OutputStream outputStream,
Vertex v)
throws java.io.IOException
GraphWriterwriteVertex in interface GraphWriteroutputStream - The stream to write to.v - The vertex to write.java.io.IOExceptionpublic void writeEdge(java.io.OutputStream outputStream,
Edge e)
throws java.io.IOException
GraphWriterwriteEdge in interface GraphWriterjava.io.IOExceptionpublic void writeVertices(java.io.OutputStream outputStream,
Traversal<?,Vertex> traversal,
Direction direction)
throws java.io.IOException
GraphWriterTraversal to a stream with its associated edges. Only write edges as
defined by the requested direction.writeVertices in interface GraphWriteroutputStream - The stream to write to.traversal - A traversal that returns a list of vertices.direction - If direction is null then no edges are written.java.io.IOExceptionpublic void writeVertices(java.io.OutputStream outputStream,
Traversal<?,Vertex> traversal)
throws java.io.IOException
GraphWriterwriteVertices in interface GraphWriteroutputStream - The stream to write to.traversal - A traversal that returns a list of vertices.java.io.IOExceptionpublic void writeGraph(java.io.OutputStream outputStream,
Graph g)
throws java.io.IOException
writeGraph in interface GraphWriteroutputStream - the GraphML OutputStream to write the Graph data tojava.io.IOException - thrown if there is an error generating the GraphML datapublic static GraphMLWriter.Builder build()
Copyright © 2013-2015 TinkerPop. All Rights Reserved.