Reputation: 161
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?
Upvotes: 0
Views: 796
Reputation: 161
The things are more simpler as it is.
Upvotes: 0
Reputation: 309
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?
Upvotes: 1