OrientDB calculate PageRank
Question
how can i calculate PageRank in OrientDB with Java API? I import my graph into OrientDB as follow
OrientGraphFactory factory = new OrientGraphFactory("plocal:./db/somegraph");
OrientGraph graph = factory.getTx();
GraphMLReader.inputGraph(graph, "./somegraph.graphml");
I am able execute any SQL Statements on it, get edges, nodes etc.
I have tried with Gremlin Script Engine such is described on https://github.com/tinkerpop/gremlin/wiki/Using-JUNG. But i get an error if try to import JUNG Module
Is there a better way to calculate PageRank on OrientDB? Or how should look an SQL Statement for it?
Solution 2
The things are more simpler as it is.
- Download Blueprints GraphJung jar file and Jung jar libs
- Add it to lib of Orientdb
- Implement it as it decribed at Blueprint wiki
OTHER TIPS
Unfortunately OrientDB don't have native PageRunk algorithm implementation, so you should use some 3rd party implementation like JUNG or implement it by your own.
I didn't use them so I can't advice an implementation.
What exactly issue do you have with using JUNG?