|| 图对象 — Neo4j 图数据科学 Python 客户端文档 - Neo4j 文档

图对象

类 graphdatascience.graph.graph_object.Graph

一个图对象,代表图目录中的图。它可以作为参数传递给算法端点,以便对相应的图进行计算。它包含关于图的摘要信息。

configuration() → Series[Any]
返回:

图的配置

creation_time() → Any
返回:

图的创建时间

database() → str
返回:

图存储的数据库名称

degree_distribution() → Series[float]
返回:

图的度分布

density() → float
返回:

图的密度

drop(failIfMissing: bool = False) → Series[str]
参数:

failIfMissing – 如果图不存在是否失败

返回:

删除操作的结果

exists() → bool
返回:

图是否存在

memory_usage() → str
返回:

图的内存使用量

modification_time() → Any
返回:

图的修改时间

name() → str
返回:

图的名称

node_count() → int
返回:

图中节点的数量

node_labels() → list[str]
返回:

图中的节点标签

node_properties(label: str | None = None) → Series[str] | list[str]
参数:

label – 要获取属性的节点标签

返回:

给定标签的节点属性

relationship_count() → int
返回:

图中关系的數量

relationship_properties(type: str | None = None) → Series[str] | list[str]
参数:

type – 要获取属性的关系类型

返回:

给定类型的关系属性

relationship_types() → list[str]
返回:

图中的关系类型

size_in_bytes() → int
返回:

图的字节大小

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