Undirected Graphs

330 views
Skip to first unread message

Mark Woon

unread,
Feb 4, 2013, 6:54:42 PM2/4/13
to gremli...@googlegroups.com
Hi, can someone please confirm my understanding of how to work with undirected graphs?

Since graphs in Blueprints are directed to create an undirected graph I need to use two edges (A->B and B->A) to link vertices.

Is there a way to not duplicate every edge and all of its properties?

Thanks,
-Mark

Matthias Broecheler

unread,
Feb 4, 2013, 9:18:48 PM2/4/13
to gremli...@googlegroups.com
Hey Mark,

you will likely get better performance by only creating the edge in one direction and then query in both, i.e. create an edge A-knows->B and then query a.getEdges(Direction.BOTH,"knows").

Best,
Matthias

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Matthias Broecheler
http://www.matthiasb.com
Reply all
Reply to author
Forward
0 new messages