You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using neo4j-graph-algo-2.2.2 library for EigenVector centrality. But, I guess there is a bug. For example, if your first node (or vertex) is not connected to others (degree is 0), the calculation is giving null exception. There is something with first node's degree.
Please help me
NodeID Degree
1 0
2 1
4 3
Exception in thread "main" java.lang.NullPointerException
at org.neo4j.graphalgo.impl.centrality.EigenvectorCentralityPower.runIterations(EigenvectorCentralityPower.java:180)
at org.neo4j.graphalgo.impl.centrality.EigenvectorCentralityPower.calculate(EigenvectorCentralityPower.java:126)
at org.neo4j.graphalgo.impl.centrality.EigenvectorCentralityPower.getCentrality(EigenvectorCentralityPower.java:93)
at neo4j.Neo4jEssentials.getEigenVectorCentralityForAllNodes(Neo4jEssentials.java:304)
at neo4j.ShortestPathTest.runEverythingResults(ShortestPathTest.java:124)
at neo4j.ShortestPathTest.main(ShortestPathTest.java:50)
The text was updated successfully, but these errors were encountered:
Hi there,
I am using neo4j-graph-algo-2.2.2 library for EigenVector centrality. But, I guess there is a bug. For example, if your first node (or vertex) is not connected to others (degree is 0), the calculation is giving null exception. There is something with first node's degree.
Please help me
NodeID Degree
1 0
2 1
4 3
Exception in thread "main" java.lang.NullPointerException
at org.neo4j.graphalgo.impl.centrality.EigenvectorCentralityPower.runIterations(EigenvectorCentralityPower.java:180)
at org.neo4j.graphalgo.impl.centrality.EigenvectorCentralityPower.calculate(EigenvectorCentralityPower.java:126)
at org.neo4j.graphalgo.impl.centrality.EigenvectorCentralityPower.getCentrality(EigenvectorCentralityPower.java:93)
at neo4j.Neo4jEssentials.getEigenVectorCentralityForAllNodes(Neo4jEssentials.java:304)
at neo4j.ShortestPathTest.runEverythingResults(ShortestPathTest.java:124)
at neo4j.ShortestPathTest.main(ShortestPathTest.java:50)
The text was updated successfully, but these errors were encountered: