【问题标题】:Not able to displaying properties in gephi from Neo4j无法从 Neo4j 显示 gephi 中的属性
【发布时间】:2017-09-27 08:09:39
【问题描述】:

我正在使用apoc.gephi.add 运行以下查询,以在Gephi 中显示来自Neo4j 的数据。

MATCH path = (pr1:Person)-[*0..2]->(pr2:Person)
WHERE pr1.id={id1} AND pr2.id={id2}  AND pr1.id<>pr2.id
CALL apoc.gephi.add ('http://localhost:8091', 'workspace', path)
YIELD nodes, relationships ,properties
RETURN *

Gephi 中,我可以看到nodesrelationships 的类型,但在Gephi 中我看不到nodespropertiesproperties (查看Data laboratory)。

有什么想法吗?

【问题讨论】:

    标签: neo4j gephi neo4j-apoc


    【解决方案1】:

    apoc.gephi.add 过程还有 2 个其他可选参数:权重属性和属性。

    你想要的是属性:它是你想要给 gephi 的所有属性的列表。基本上,apoc 什么也没提供。 您可以像这样使用“添加”: CALL apoc.gephi.add('http://localhost:8091', 'workspace', path, ['prop1','prop2'...])

    更多详情here

    如果你想通过 gephi 了解更多关于 neo4j 的信息,this is a good tutorial,它还可以教你如何使用权重属性,这是制作相关图表的一个非常酷的功能。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多