Neo4j version: 2.0.3 SingleSourceShortestPathBFS is set to CostType=Integer via it implementing SingleSourceShortestPath<Integer>. If I want to calculate the ClosenessCentrality if have to set it to ClosenessCentrality<Integer> as well and its CostDivider<Integer> too. An anonymous implementation would be (as in the test): @Override public Integer divideByCost(Double d, Integer c) { // TODO Auto-generated method stub return d.intValue() / c; }
The resulting closeness is 0 though (should be 0.625 and 0.4166 in a small test graph). Suggesting that because of the Integer conversion the results get mangled. So are SingleSourceShortestPathBFS and ClosenessCentrality just not compatible? BetweennessCentrality does work with SingleSourceShortestPathBFS. Georg -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.