--
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/9dc9a04c-8d99-4d14-ba96-a69ebd03112a%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremli...@googlegroups.com.
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/40eb6d65-c60e-4e0a-920e-8e3de7028955%40googlegroups.com.
You could use subgraph() but that seems unnecessary compared with the other options I presented. Also, if you have a "large" graph it seems like it will take a long time to do it that way. You're currently iterating V() once per batch with no guarantees that you are getting all the vertices in the graph because you are assuming the same ordering of results returned by the graph. The first change you should make is to iterate V() once and batch that Iterator. Of course, that makes it a bit harder to use subgraph() but makes it even easier to use one of the approaches I presented in my last post where you use GraphSONWriter directly. I'd avoid the subgraph() approach because you're not storing data terribly efficiently either. You could be storing the same vertex many many times across your batches that way.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/40eb6d65-c60e-4e0a-920e-8e3de7028955%40googlegroups.com.
You can make a new instance of GraphSONWriter with the builder pattern:GraphWriter writer = GraphSONWriter.build().create();You might also want to take a look at GraphSONMapper which you can use directly for more control or pass a custom instance to GraphSONWriter with extra configuration for use there:It too can be generated with builder pattern:
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/82ab6584-b5a2-40ef-97a4-6cb55259b7dd%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/82ab6584-b5a2-40ef-97a4-6cb55259b7dd%40googlegroups.com.
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/d94f88e4-6da5-4317-8169-da6af1672463%40googlegroups.com.
GraphSONVersion.V2_0.> 1- When you say "modify settings" what is that?Please see the javadoc links i provided:You may need to provide configurations there for custom serializers and such.> 2- Does GraphSON `requires` that a node only exports its outgoing? Or is just "fine" with any? For sure having only the OUT (or only IN) is the best to avoid useless redundancy.if you just want to export a complete graph then choosing incoming or outgoing is sufficient. You don't need to do both as it will write each edge twice. I wouldn't say that GraphSON requires anything in/out/both edges in particular...it can expect any of those options and still be valid.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d94f88e4-6da5-4317-8169-da6af1672463%40googlegroups.com.
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/34bc10ad-7e0d-477b-af07-4d2102250813%40googlegroups.com.
I don't think there's a reason for it to be GraphSON 2.0. It was probably an oversight as we want to 3.4.x, but I don't remember. We probably should change that to GraphSON 3.0 for 3.5.0.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/34bc10ad-7e0d-477b-af07-4d2102250813%40googlegroups.com.
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/e710fa01-a6ac-4787-99a7-4b87260029d7o%40googlegroups.com.
You wrote the graph using writeVertex() but then read it in with readGraph(). That's a reasonable expectation but in a sense you wrote with a custom format by choosing OUT edges. I believe readGraph() expects IN edges. fwiw writeGraph() writes BOTH.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/e710fa01-a6ac-4787-99a7-4b87260029d7o%40googlegroups.com.
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/fda804d2-d91d-42a4-8ca8-fd0ad4d8aae0o%40googlegroups.com.
just IN should be fine. I was just saying that writeGraph() uses BOTH. technically either should work but IN is obviously more space efficient.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/fda804d2-d91d-42a4-8ca8-fd0ad4d8aae0o%40googlegroups.com.