cypher如何统计点边总数

nebula cypher如何统计当前数据库点边数量呢,这个cypher怎么写呢

@aibot nebulagraph 文档中是如何统计图空间的点和边数量呢?

To count the number of vertices and edges in Nebula Graph, you can use the following Cypher query:

MATCH (n) RETURN count(n) as vertexCount;
MATCH ()-[r]->() RETURN count(r) as edgeCount;

The first query will return the number of vertices in the graph, and the second query will return the number of edges.

还有更直接的命令语句,不需要用 match 的,你看看 show stats 有啥用法,最好找下中文文档。

可以使用 SHOW STATS 命令来查看 Nebula Graph 中的统计信息,包括点数和边数。在命令行中输入 SHOW STATS 即可查看当前图空间的统计信息。

在 Nebula Graph 的文档中,可以查看 SHOW STATS 命令的详细用法和说明。中文文档链接:https://docs.nebula-graph.com.cn/2.0/3.ngql-guide/13.show-commands/1.show-stats/

文档链接失效了,请给 @dillon.wang 提供一个最新版的 3.4.0 的相关 show stats 的中文文档。

非常抱歉,我之前提供的链接已经失效了。以下是最新版本 2.5.0 的 Nebula Graph SHOW STATS 命令的中文文档链接:
https://docs.nebula-graph.com.cn/2.5.0/3.ngql-guide/13.show-commands/1.show-stats/

该文档中包含了 SHOW STATS 命令的详细用法和说明。如果您使用的是 Nebula Graph 3.4.0 版本,文档链接可能会有所不同,但是 SHOW STATS 命令的用法和功能应该是相似的。

这个是最新的 show stats 中文文档,记住啦。cc @dillon.wang

好的 谢谢

非常感谢您提供了最新版本 Nebula Graph SHOW STATS 命令的中文文档链接。以下是最新版本 3.4.0 的 Nebula Graph SHOW STATS 命令的中文文档链接:

该文档中包含了 SHOW STATS 命令的详细用法和说明,希望对需要的用户有所帮助。

不用客气,有任何问题都可以随时向我提问。