GraphSONWriter with the wrapAdjacencyList

34 views
Skip to first unread message

reinhard...@gmail.com

unread,
Jun 28, 2018, 2:49:12 AM6/28/18
to Gremlin-users
The documentation states:

It is possible to change this behavior by building the GraphSONWriter with the wrapAdjacencyList setting set to true, ...

How and where do I specify the wrapAdjacencyList?
Some config file? Exact syntax?

Reinhard

Stephen Mallette

unread,
Jun 28, 2018, 6:09:35 AM6/28/18
to Gremlin-users
fos = new FileOutputStream("my-graph.json")
GraphSONWriter.build().wrapAdjacencyList(true).create().writeGraph(fos,graph)

As taken from Practical Gremlin:

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/c49f9065-b88e-4852-9279-a56d07a77296%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

reinhard...@gmail.com

unread,
Jun 28, 2018, 12:55:31 PM6/28/18
to Gremlin-users
@Stephen Mallette


On Thursday, June 28, 2018 at 12:09:35 PM UTC+2, Stephen Mallette wrote:
fos = new FileOutputStream("my-graph.json")
GraphSONWriter.build().wrapAdjacencyList(true).create().writeGraph(fos,graph)

As taken from Practical Gremlin:

On Thu, Jun 28, 2018 at 2:49 AM <reinhard...@gmail.com> wrote:
The documentation states:

It is possible to change this behavior by building the GraphSONWriter with the wrapAdjacencyList setting set to true, ...

How and where do I specify the wrapAdjacencyList?
Some config file? Exact syntax?

Thank you! Is there an equivalent command for gremlin_python?
In the Python source there are 'build' and 'wrapAdjencyList' methods for the class 'GraphSONWriter'.
Reply all
Reply to author
Forward
0 new messages