neo4j浏览器是如何绘制对象关系的? [英] How does the neo4j browser draw the object relationships?

查看:61
本文介绍了neo4j浏览器是如何绘制对象关系的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行诸如 match (n) return n 之类的查询时,会返回所有节点,但是,响应数据中似乎没有关系和节点的连接方式.但是,该图设法绘制了具有关系的完整数据模型.

When I run a query such as match (n) return n all of the nodes are returned, however, the relationships and how the nodes are connected does not appear to be in the response data. However, the graph manages to draw the full data model with relationships.

浏览器如何收集这些信息,或者我错过了如何从响应数据中获取这些信息?

What is the browser doing to gather together this information, or am I missing how this can be obtained from the response data?

我一直在使用neomodel查询数据,但是inflate方法遍历结构并且返回太慢.我想在不需要遍历整个结构的情况下获得类似的响应,并且想知道推荐的方法是什么?

I have been using neomodel to query the data, however the inflate method walks the structure and returns too slowly. I would like to achieve a similar response without the need to walk the entire structure and was wondering what the recommended approach was?

推荐答案

[已编辑]

neo4j 浏览器有一个自动完成"设置(在最新版本中标记为连接结果节点"),可以启用/禁用查询每个结果集中节点之间的关系.(单击浏览器最左侧面板中的齿轮图标以查看设置.)

The neo4j browser has an "autoComplete" setting (labelled "Connect result nodes" in the latest version) that enables/disables querying for the relationships between the nodes in every result set. (Click on the gear icon in the leftmost panel of the browser to see the settings.)

换句话说,neo4j 浏览器必须执行额外的查询才能获得这些关系——当查询只要求节点时,它们不会免费返回.

In other words, the neo4j browser has to perform extra queries to get those relationships -- they are not returned for free when a query just asks for nodes.

如果你好奇 autoComplete 是如何实现的,这里是一些实际代码的链接.

If you are curious how autoComplete is implemented, here is a link to some of the actual code.

这篇关于neo4j浏览器是如何绘制对象关系的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆