I have one Gremlin traversal that looks like this:
g.V().hasLabel("Firma").has("cui","2816464")
..........subgraph('sub') ......otherV() ...?????....
If I want to get a collection of vertex properties I will end the traversal with:
"values('prop')"
If I want to save the subgraph in a 'graphml' format I will end the traversal with:
cap('sub').next().io(IoCore.graphml()).writeGraph('/tmp/a2.xml')
How could I achieve both in a single traversal and get the collection of vertex properties while saving the subgraph in Graphml format?