Assuming that you can identify the 100 nodes // MATCH and/or filter the 100 nodes MATCH (n) WHERE
// put the nodes in a collection WITH collect(n) AS mynodes // get als the relations withing the context of the collection MATCH (n)-[r]->(m) WHERE (n IN mynodes) AND (m IN mynodes) RETURN n,r,m On Monday, 26 May 2014 09:15:45 UTC+2, natali wrote: > > hey' > i have a db with 300,000,000 relations and 20,000,000 nodes > and i have a group of 100 nodes that i wanna find the relation between > this nodes and create from it a sub graph, > how can i do it with java api? > (find path only works between 2 nodes) > thank you. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.