Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-25-2020 10:32 AM
I am not clear about how linked lists work.
If I have several linked list intertwined:
(A)-[:ConnectsTo]->(M)-[:ConnectsTo]->(B)
(B)-[:ConnectsTo]->(M)-[:ConnectsTo]->(C)
It would appear as A is connected to C through M, but that is not what I intended.
Would it be possible to pull out two linked list as the way I code them?
A-M-B
B-M-C
where there is no A-M-C even though it appears so.
Thanks in advance
09-26-2020 12:46 AM
You'd either use a different relationship type for each linked list or you don't build the list on the nodes directly and instead use proxy nodes:
()------->()------->()
| | |
(A) (M) (B) (C)
| | |
()------->() ()
^ |
--------------------
I hope the diagram illustrates the idea:
CONNECTS_TO
between the proxy nodes to have a linked listAll the sessions of the conference are now available online