Assuming that you have nodes representing suit en value, all cards can be created like this.
match (s:suit),(v:value) with s,v create (s)<-[:SUIT]-(c:CARD)-[:VALUE]->(v) Best, Tom On Friday, 2 May 2014 22:33:15 UTC+2, Gabriel Peschl wrote: > > Hi everyone, > > I would like know how I can perform a cartesian product in 2 graph, stored > in neo4j. > > For example: > > the first graph I have this nodes: > Ace > King > Jack > > in the second graph, I have this nodes: > Hearts > Diamonds > Clubs > > So, the result after the cartesian product: > First node: (Ace, Hearts) > Second node: (Ace, Diamonds) > Third node: (Ace, Clubs) > and so on.... > > Thank you very much! > > -- 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.