简体   繁体   English

如何在 Neo4j 浏览器中显示节点/关系图

[英]How to show graph of nodes/relationships in Neo4j Browser

Basic question: I've figured out how to use the Neo4j Desktop/Browser to run some of the sample graphGists code.基本问题:我已经弄清楚如何使用 Neo4j 桌面/浏览器来运行一些示例 graphGists 代码。 However, I can't figure out how to see the database graphcically (circles for nodes, lines for connections) within the Browser.但是,我无法弄清楚如何在浏览器中以图形方式查看数据库(节点的圆圈,连接的线)。 Is this even possible to do?这甚至有可能做到吗? If so, tips much appreciated.如果是这样,非常感谢提示。

I'm using a Linux laptop.我正在使用 Linux 笔记本电脑。

Thanks!谢谢!

Kurt库尔特

To answer your question - yes it's possible to visualize the entire database: 要回答您的问题-是的,可以可视化整个数据库:

MATCH (n) RETURN n
  1. Try the query on a different browser. 在其他浏览器上尝试查询。
  2. If the problem persists, try to isolate the issue by trying a node-only query eg MATCH (node) RETURN node LIMIT 10 如果问题仍然存在,请尝试通过仅节点查询来解决问题,例如MATCH(节点)RETURN node LIMIT 10

  3. Try limiting the results of your query to 300 and check if the graph works. 尝试将查询结果限制为300,然后检查图表是否有效。

Please share your query, it may be a cypher issue. 请分享您的查询,这可能是密码问题。

Note: Wanted to leave a comment, don't have enough rep. 注意:想发表评论,没有足够的代表。

By default there is a web browser if you go to port 7474 of your server IP or http://localhost:7474 in case of default installation 默认情况下,如果您是服务器IP的端口7474或http:// localhost:7474的默认安装版本,则有一个Web浏览器

If you want to write your own version of the same (why?) Take up any JS graph library and you can achieve similar visuals in result 如果您想编写自己的相同版本(为什么?),请使用任何JS图形库,您可以在结果中获得相似的视觉效果

试试这个 db.schema.visualization()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM