neo4j之图计算

2019-05-26  本文已影响0人  王金松

如何通过neo4j做图计算

使用入门

graphx对neo4j的操作

python-igraph对neo4j的操作

https://pypi.org/project/python-igraph/

安装

pip install python-igraph

使用

neo4j自身算法

https://neo4j-contrib.github.io/neo4j-apoc-procedures/#algorithms
目前已经不推荐使用

利用neo4j的增强算法

https://github.com/neo4j-contrib/neo4j-graph-algorithms
官方推荐

安装
  1. Download graph-algorithms-algo-[version].jar from the matching release and copy it into the $NEO4J_HOME/pluginsdirectory. We can work out which release to download by referring to the versions file.
  2. Add the following to your $NEO4J_HOME/conf/neo4j.conf file:
dbms.security.procedures.unrestricted=algo.*

We need to give the library unrestricted access because the algorithms use the lower level Kernel API to read from, and to write to Neo4j.

  1. Restart Neo4j
  2. Verifying installation
CALL algo.list()
上一篇下一篇

猜你喜欢

热点阅读