|| apoc.nodes.isDense - APOC 核心文档 - Neo4j 文档

apoc.nodes.isDense

此函数与 存储格式 block 不兼容。

详情

语法

apoc.nodes.isDense(node)

描述

如果给定的 NODE 是密集节点,则返回 true。

参数

名称

类型

描述

node

NODE

要检查是否为密集节点的节点。

返回

BOOLEAN

使用示例

本节中的示例基于以下示例图

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

© . This site is unofficial and not affiliated with Neo4j, Inc.