Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在考虑将 Neo4j 用于组织结构图样式树,我需要在其中使用最低共同祖先算法......
如何在 Neo4j 数据库上实现 LCA?
该Neo4J Community库从 1.8.M03 版本开始lowestCommonAncestor()在该类中包含一个方法org.neo4j.graphalgo.impl.ancestor.AncestorsUtil。
Neo4J Community
lowestCommonAncestor()
org.neo4j.graphalgo.impl.ancestor.AncestorsUtil