Neo4j 中的基元计数
I have been reading through the documentation for neo4j and it's components and have yet to come across functionality that lets me query the total number of primitives (nodes, relationships, and properties) in the graph. Does this functionality exist somewhere or am I going to have to write code that traverses the entire graph counting as it goes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谢谢你的提问! 我是 Neo4j 团队的成员,我们目前拥有报告此类信息的商业工具。 不过,计划在下一个开源版本中扩展该 API。 目前您可以使用以下非官方 API:
其中类为
Node.class
、Relationship.class
或PropertyStore.class
。Thanks for the question! I'm on the Neo4j team, and we currently have commercial tools which report this kind of information. However, an extension of the API is scheduled for the next open source version. For the time being you can use the following non-official API:
where the class would be
Node.class
,Relationship.class
orPropertyStore.class
.这对我有用:
This worked for me: