List<Row> list = new GremlinPipeline<Object, Object>(graphDb.getVertices("Person.name", 1)).as("a") .out().except("a").as("b") .out().except("a").except("b").as("c").out().retain("b").back("c").in().retain("a").select().toList();
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")
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
--
---
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.