ClosenessCentrality in graphalgo

12 views
Skip to first unread message

Salim Afra

unread,
Apr 26, 2015, 4:32:31 AM4/26/15
to ne...@googlegroups.com
Hi,

I was trying to calculate closeness centrality using graphalgo package. Unfortunately, I am getting "NullPointer" exception. (Also, I am using code from here exactly same http://grepcode.com/file/repo1.maven.org/maven2/org.neo4j/neo4j-graph-algo/2.1.7/org/neo4j/graphalgo/centrality/ClosenessCentralityTest.java?av=f) I have 4 nodes in my network and 2 by 2 connected each other (see Figure). I am thinking the problem singleshortespath function. But i could not find more example.

How can I solve the problem?
thanks


Kenny Bastani

unread,
May 2, 2015, 4:18:40 AM5/2/15
to ne...@googlegroups.com
You can take a look at https://github.com/kbastani/neo4j-mazerunner

There is a docker container to make it easier to install and use: https://registry.hub.docker.com/u/kbastani/neo4j-graph-analytics/

Usage directions: https://github.com/kbastani/neo4j-mazerunner#closeness-centrality

Let me know if you have any questions.
Reply all
Reply to author
Forward
0 new messages