Neo4j - 关系扩展器已弃用,使用最低共同祖先

时间:2012-11-28 00:19:36

标签: java neo4j graph-theory deprecated

我希望在这里使用最低的共同祖先方法: http://grepcode.com/file/repo1.maven.org/maven2/org.neo4j/neo4j-graph-algo/1.8.M03/org/neo4j/graphalgo/impl/ancestor/AncestorsUtil.java?av=f

我使用了RelationshipExpander,但是该类被弃用而不支持PathExpander,但在这种情况下我没有看到如何应用PathExpander。

此处示例: http://grepcode.com/file/repo1.maven.org/maven2/org.neo4j/neo4j-graph-algo/1.8.M03/org/neo4j/graphalgo/impl/ancestor/AncestorTestCase.java?av=f

任何指针?

2 个答案:

答案 0 :(得分:1)

AncestorUtil也将使用PathExpander方法更新(可能是1.9),所以不用担心。

答案 1 :(得分:0)

我也在寻找这个。到目前为止,我已经看到AncestorUtil没有改变。

从以下链接: http://api.neo4j.org/current/org/neo4j/graphdb/RelationshipExpander.html我希望有可能以某种方式使用它。

之前还有一个用法示例,我们可以在这里看到。 http://grepcode.com/file/repo1.maven.org/maven2/org.neo4j/neo4j-graph-algo/1.9.4/org/neo4j/graphalgo/impl/ancestor/AncestorTestCase.java?av=f任何人都知道如何调整它?