apoc.nodes.isDense
This function is incompatible with the store format |
Syntax |
|
||
Description |
Returns true if the given |
||
Arguments |
Name |
Type |
Description |
|
|
The node to check for being dense or not. |
|
Returns |
|
Usage Examples
The examples in this section are based on the following sample graph:
MERGE (michael:Person {name: "Michael"})
WITH michael
CALL {
WITH michael
UNWIND range(0, 100) AS id
MERGE (p:Person {name: "Person" + id})
MERGE (michael)-[:KNOWS]-(p)
RETURN count(*) AS friends
}
RETURN friends;
friends |
---|
101 |
MATCH (p:Person {name: "Michael"})
RETURN apoc.nodes.isDense(p) AS output;
output |
---|
TRUE |
MATCH (p:Person {name: "Person1"})
RETURN apoc.nodes.isDense(p) AS output;
output |
---|
FALSE |