org.neo4j.graphalgo.impl.centrality
Interface CostDivider<CostType>

Type Parameters:
CostType -

public interface CostDivider<CostType>

To make calculations as general as possible, this follows a similar idea to CostAccumulator. The core use of this is the closeness centrality's need to produce an "average" value.

Author:
work

Method Summary
 CostType divideByCost(Double d, CostType c)
           
 CostType divideCost(CostType c, Double d)
           
 

Method Detail

divideCost

CostType divideCost(CostType c,
                    Double d)
Returns:
c / d

divideByCost

CostType divideByCost(Double d,
                      CostType c)
Returns:
d / c


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