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