Is it possible to get two different times of relations between two nodes?

I am new to Neo4j and just play to learn deeply. I have little doubt

if I created two nodes in space and provided the relationship, as well as the system time (to know what time they are of each other) between the two nodes.

So now my question is: is it possible to get two different relationship times (if I provide Direction as Both and I only created the relationship once)?

You humans know how the move function in Neo4j works.

If yes, please explain to me an example, for example, how?

+3
source share
1 answer

Your question is not entirely clear.

If you

(person) - knows [started = time] -> (person)

, ( , ).

:

Node me, you;

for (Relationship r : me.getRelationships(KNOWS)) {
   if (r.getOtherNode(me).equals(you)) result.add(r.getProperty("time"));
}

GraphAlgoFactory.allSimplePaths , .

+1

Source: https://habr.com/ru/post/1794211/


All Articles