Hi,

to reproduce your graph in OrientDB you can use this commands:

create class Person extends V
create property Person.name string
insert into Person(name) values ("A"),("B"),("C")
create class connect extends E
create edge connect from (select from Person where name="A") to (select from 
Person where name="B")
create edge connect from (select from Person where name="A") to (select from 
Person where name="C")
create edge connect from (select from Person where name="B") to (select from 
Person where name="C")
create edge connect from (select from Person where name="C") to (select from 
Person where name="B")

to create the edges you can also use the @rid like in the example below:

create edge connect from #12:0 to #12:1
create edge connect from #12:0 to #12:2
create edge connect from #12:1 to #12:2
create edge connect from #12:2 to #12:1

this is the result:

<https://lh3.googleusercontent.com/-9WhStNre0ag/VxkW0B09mqI/AAAAAAAAAC0/kHaJCQWriWs38PDZUhvOlkZHlhepmA6vwCLcB/s1600/graph.png>
In my opinion you can avoid the double edge between B and C because with 
the edges you can traverse vertices in both directions using this commands: 
in(), out() and both().
But it's fine as well.

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to