Bidirectional Edge

60 views
Skip to first unread message

parvat

unread,
Jul 29, 2016, 3:52:37 AM7/29/16
to OrientDB
hi

How  Can i create a bidirectional edge in orientdb .




Luigi Dell'Aquila

unread,
Jul 29, 2016, 3:54:23 AM7/29/16
to orient-...@googlegroups.com
Hi,

Every edge in OrientDB is bi-directional, meaning that you can traverse it in both directions.
There is no way to create an edge with no direction, but you can always use .both() operator to traverse all the edges, regardless the direction

Thanks

Luigi


--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

parvat

unread,
Jul 29, 2016, 5:33:19 AM7/29/16
to OrientDB
It means cant we create a unidirectional edge?

Luigi Dell'Aquila

unread,
Jul 29, 2016, 5:51:05 AM7/29/16
to orient-...@googlegroups.com
An edge has two pointers, one to the origin vertex and one to the destination vertex, this is the basic internal structure, so it is natively bi-directional.

If you need uni-directional pointers, you can use links

Thanks

Luigi

parvat

unread,
Jul 29, 2016, 7:17:49 AM7/29/16
to OrientDB
Any example for the same
Reply all
Reply to author
Forward
0 new messages