Hi All,

Noob question here:

Say that I am a node on the graph as are 3 of my other friends. No let's say
that ice cream is a node and pizza is a node. Two of us like pizza, where
like is the relationship (edge), and 3 of us like ice cream. I would like to
know who likes ice cream and who likes pizza given just the people nodes.
The ultimate goal is to determine who like the same things I do. What is the
best way to do this?

Currently I can accomplish what I'm looking for by getting all the
relationships from each of the nodes and seeing where they lead and then
seeing if these nodes are the same as mine. But it would seem that there may
be a better way, like something that takes two (n) nodes and shows all the
common relationship endpoints. Seems like this should be possible with
paths, but I can't seem to figure it out.

Bonus if you can give me an example in REST.

Thanks so much!
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to