In the Neo4j browser I can easily show all relationships:
MATCH p=()-[r]->() RETURN p
Plus I can easily show some particularly interesting relationship(s):
MATCH p=(n)-[r]->() WHERE n.relevance > 10 RETURN p
But how can I combine these two: How can...
In a smallish database I try to add to a node a degree property (how many relationships go out from this node).
I tried the following query:
MATCH (p)-[r]->(x) WHERE p.id = "42"
SET p.degree = count(r);
The WHERE clause WHERE p.id = "42" full define...
I'm just starting out to do a bit more with neo4j and I try to represent a truly bi-directional realtionship.
I know neo4j cannot store un-directional relationships ((a)--(b)), which would be an option. And I didn't manage to create bidirect...
Thanks @michael.hunger. Will look at Bloom.
As for using a property as caption, how do I tell the front end to use some node information as caption? Can I do it at the time of network creation via a special property name?
Cool. Super thanks @giuseppe.villani .
I certainly will try this - and read the docs on the WITH clause...
BTW, why is there a separate library function in APOC for this? Is it faster than your first, native approach?