py2neo - py2neo Api 中的 COUNT()、MIN()、MAX() 等函数。(不使用 cypher.execute)

py2neo - Functions like COUNT(),MIN(),MAX() in py2neo Api.(without using cypher.execute)

嗨,
我是 Py2neo API 的新手。我对使用 cypher 有很好的了解,但我的要求是 运行 python API (而不是 cypher.execute("****")),因为对图.

我想要一种方法来找到图中的节点数,这相当于 MATCH n RETURN COUNT(n).

Graph 对象具有 order 属性 (http://py2neo.org/2.0/essentials.html#py2neo.Path.order)

from py2neo import Graph

graph = Graph()

print(graph.order)

"I want to compare cypher.execute() vs API operations"

为了什么目的?大多数 API 操作都由 Cypher 调用支持。