org.neo4j.graphalgo.impl.centrality
Interface EigenvectorCentrality

All Known Implementing Classes:
EigenvectorCentralityArnoldi, EigenvectorCentralityPower

public interface EigenvectorCentrality

Interface representing the algorithms for computing eigenvector centrality. NOTE: Currently only works on Doubles.

Author:
Patrik Larsson

Method Summary
 void calculate()
          Internal calculate method that will do the calculation.
 Double getCentrality(Node node)
          This can be used to retrieve the result for every node.
 void reset()
          This resets the calculation if we for some reason would like to redo it.
 

Method Detail

getCentrality

Double getCentrality(Node node)
This can be used to retrieve the result for every node. Might return null if the node is not contained in the node set initially given, or doesn't receive a result because no relationship points to it.

Parameters:
node - The node for which we would like the value.
Returns:
the centrality value for the given node.

reset

void reset()
This resets the calculation if we for some reason would like to redo it.


calculate

void calculate()
Internal calculate method that will do the calculation. This can however be called externally to manually trigger the calculation.



Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.