apoc.nodes.isDense
|
此函数与 存储格式 |
语法 |
|
||
描述 |
如果给定的 |
||
参数 |
名称 |
类型 |
描述 |
|
|
要检查是否为密集节点的节点。 |
|
返回 |
|
||
使用示例
本节中的示例基于以下示例图
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;
| 朋友 |
|---|
101 |
MATCH (p:Person {name: "Michael"})
RETURN apoc.nodes.isDense(p) AS output;
| 输出 |
|---|
TRUE |
MATCH (p:Person {name: "Person1"})
RETURN apoc.nodes.isDense(p) AS output;
| 输出 |
|---|
FALSE |