Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-07-2018 10:19 AM
I tried to create bidirectional relationships by using this pattern (a)-[:]-(b)
and also this one (a)<-[:]->(b)
.
but at the end result is direct to one part of the nodes from the first parenthesis to last one (a)-[:]->(b)
any suggestion?
Solved! Go to Solution.
03-17-2020 09:08 AM
Looks like the tutorial is just fine:
As Neo4j follows Property Graph Data Model, it should support only directional relationships. If we try to create a Relationship without any direction, then Neo4j DB server should throw an error
So you can only store directional relationships. But nothing stops you by omitting the direction of relationship when you are doing a MATCH
statement.
11-07-2018 11:56 AM
Neo4j cannot store bidirectional relationships. No way around this, you can however treat relationships as bidirectional when querying your graph.
03-17-2020 08:18 AM
Hello,
what you wrote means that this tutorial is wrong ?
https://www.tutorialspoint.com/neo4j/neo4j_directional_relationships.htm
03-17-2020 09:08 AM
Looks like the tutorial is just fine:
As Neo4j follows Property Graph Data Model, it should support only directional relationships. If we try to create a Relationship without any direction, then Neo4j DB server should throw an error
So you can only store directional relationships. But nothing stops you by omitting the direction of relationship when you are doing a MATCH
statement.
09-09-2022 06:37 AM
I have a graph with only some edges that are bi-directional. I am clueless to make cypher queries so that the resulting graph can I have a node with bi-directional edge
All the sessions of the conference are now available online