GraphSONWriter

object GraphSONWriter: Any

Responsible for writing Graph objects to an OutputStreamWriter in GraphSON format. Note that GraphSON format is a more space-expensive format.

Methods

write

fun write(graph: Graph, writer: OutputStreamWriter)

Given a Graph object, serializes it to GraphSON format to the given OutputStreamWriter. This format is supported by TinkerGraph and suited for web responses.

Parameters

Name Description
graph: Graph

The Graph to serialize.

writer: OutputStreamWriter

The stream to write the serialized graph to.

ReturnValue

Name Description
Unit