Is there any way to calculate PageRank
and Shortest Path
algorithm with gremlin in Amazon Neptune?
As it said in gremlin documentation PageRank centrality can be calculated with Gremlin with the pageRank()-step which is designed to work with GraphComputer (OLAP) based traversals
.
I have try to create a traversal with gremlinpython through this code: g = graph.traversal().withComputer().withRemote(remoteConn)
but I got this error: GremlinServerError: 499: {"code":"UnsupportedOperationException","requestId":"4493df8b-b09f-47b1-b230-b83cfe1afa76","detailedMessage":"Graph does not support graph computer"}
So is it possible to use GraphComputer traversal in Amazon Neptune?
Amazon Neptune does not currently support the Apache TinkerPop GraphComputer interface. You have a few options.
UPDATE 2024-01-29
In December 2023, Neptune Analytics was released. It includes support for built in algorithms, including PageRank and Shortest Path computation. The documentation for the algorithms is here