简体   繁体   English

Neo4j关系线设计

[英]Neo4j relationship line design

I am looking for some pointers/help to customize the relationship line between the nodes. 我正在寻找一些指针/帮助来定制节点之间的关系线。 I have two nodes, User and Account. 我有两个节点,用户和帐户。 In my data set, there are multiple records with same User-Account combination. 在我的数据集中,有多个记录具有相同的用户帐户组合。 Currently when i generate the graph, there are multiple lines traversing from user node to Account node. 当前,当我生成图形时,有多条线从用户节点遍历到帐户节点。 Now my requirement is to have a one single line between user and account node, but the thickness of the line has to vary depending on the number of user-account combination available in the data set. 现在,我的要求是在用户和帐户节点之间只有一条线,但是线的粗细必须根据数据集中可用的用户-帐户组合的数量而变化。

To make it clear, assume Userid - 1234 .. accountid - 9999 .. there are 50 records in the data set, with the same combination. 为了清楚起见,假设Userid-1234 .. accountid-9999 ..在数据集中有50条记录,并且具有相同的组合。 In the graph, relationship line between userid:1234 and accountId:9999 nodes has to thicker, when compared to another set of userId:accountId combination which has only 5 records in the data set. 在图中,与另一组userId:accountId组合(在数据集中只有5条记录)相比,userid:1234和accountId:9999节点之间的关系线必须更粗。

Is it possible to have this kind of relationship graph. 是否可能有这种关系图。 Thanks in advance. 提前致谢。

Your question is about visualization of the graph and it's not related to Neo4j (which is data store). 您的问题是关于图形的可视化,它与Neo4j(数据存储)无关。

Yes it's possible to do that. 是的,可以这样做。 Please tell us more about your goals. 请进一步介绍您的目标。

Here is great guide about visualization - Graph Visualization for Neo4j 这是有关可视化的重要指南-Neo4j的图形可视化


If you are talking about the Neo4j Browser that it's not possible or at least not without lots of hacks. 如果您正在谈论Neo4j浏览器,那是不可能的,或者至少没有很多黑客手段。 But source code is available - https://github.com/oskarhane/neo4j/tree/master/community/browser 但是源代码可用-https://github.com/oskarhane/neo4j/tree/master/community/browser

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

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