本文介绍了如何在neo4j中在屏幕上显示所有节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在neo4j数据库中,我有近5000个Recipes节点和5个Meal_Types节点.现在它们之间没有任何关系.我在下面运行CQL:

I have a almost 5000 nodes of Recipes and 5 nodes of Meal_Types in neo4j database. Right now there is no relationship between them. I am running CQL below:

MATCH (n) RETURN n LIMIT 100000

这运行正常,但是它仅返回与Recipes相关的节点.可能有隐藏的东西,我的意思是可能有与Meal_Types相关的节点,但是由于它们的颜色相同,因此很难区分它们.

This is running fine, but it is returning node related to Recipes only. There may be something hidden, I mean there might be nodes related to Meal_Types but as they are in same color it is very hard to differentiate them.

那么有没有办法使所有节点分别以不同的颜色显示?

So is there a way to bring all nodes to dispaly with different colors respectively?

推荐答案

您可以按照以下说明在neo4j浏览器中更改输出的样式:

You can change the styling of the output in the neo4j browser as described here:

https://neo4j.com/developer/guide-neo4j-browser/# _styling_neo4j_browser_visualization

但是,可以显示的节点/关系数是有限制的.因此,您可能不会看到所有5000个Recipe节点和所有5个Meal_Type节点,而是看到查询返回的前N个节点.

However, there is a limit for the number of nodes/relationships that can be displayed. So you will likely not see all 5000 Recipe nodes and all 5 Meal_Type nodes but rather the first N nodes returned from your query.

渲染大图真的很困难:)

Rendering of large graphs is really difficult :)

这篇关于如何在neo4j中在屏幕上显示所有节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 03:00