public interface GraphWriter
| Modifier and Type | Method and Description |
|---|---|
void |
writeEdge(java.io.OutputStream outputStream,
Edge e)
Write an edge to a stream.
|
void |
writeGraph(java.io.OutputStream outputStream,
Graph g)
Write the entire graph to a stream.
|
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.
|
default void |
writeVertices(java.io.OutputStream outputStream,
Traversal<?,Vertex> traversal)
Write a vertex to a stream without writing its edges.
|
default 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. |
void writeGraph(java.io.OutputStream outputStream,
Graph g)
throws java.io.IOException
java.io.IOExceptionvoid writeVertex(java.io.OutputStream outputStream,
Vertex v,
Direction direction)
throws java.io.IOException
outputStream - The stream to write to.v - The vertex to write.direction - If direction is null then no edges are written.java.io.IOExceptionvoid writeVertex(java.io.OutputStream outputStream,
Vertex v)
throws java.io.IOException
outputStream - The stream to write to.v - The vertex to write.java.io.IOExceptiondefault void writeVertices(java.io.OutputStream outputStream,
Traversal<?,Vertex> traversal,
Direction direction)
throws java.io.IOException
Traversal to a stream with its associated edges. Only write edges as
defined by the requested direction.outputStream - 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.IOExceptiondefault void writeVertices(java.io.OutputStream outputStream,
Traversal<?,Vertex> traversal)
throws java.io.IOException
outputStream - The stream to write to.traversal - A traversal that returns a list of vertices.java.io.IOExceptionvoid writeEdge(java.io.OutputStream outputStream,
Edge e)
throws java.io.IOException
java.io.IOExceptionCopyright © 2013-2015 TinkerPop. All Rights Reserved.