edu.uci.ics.jung.algorithms.scoring
Class BarycenterScorer<V,E>

java.lang.Object
  extended by edu.uci.ics.jung.algorithms.scoring.DistanceCentralityScorer<V,E>
      extended by edu.uci.ics.jung.algorithms.scoring.BarycenterScorer<V,E>
All Implemented Interfaces:
VertexScorer<V,Double>

public class BarycenterScorer<V,E>
extends DistanceCentralityScorer<V,E>

Assigns scores to each vertex according to the sum of its distances to all other vertices.


Field Summary
 
Fields inherited from class edu.uci.ics.jung.algorithms.scoring.DistanceCentralityScorer
averaging, distance, graph, ignore_missing, ignore_self_distances, output
 
Constructor Summary
BarycenterScorer(Hypergraph<V,E> graph)
          Creates an instance with the specified graph.
BarycenterScorer(Hypergraph<V,E> graph, Distance<V> distance)
          Creates an instance with the specified graph and distance metric.
 
Method Summary
 
Methods inherited from class edu.uci.ics.jung.algorithms.scoring.DistanceCentralityScorer
getVertexScore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarycenterScorer

public BarycenterScorer(Hypergraph<V,E> graph,
                        Distance<V> distance)
Creates an instance with the specified graph and distance metric.

Parameters:
graph - the input graph
distance - the distance metric to use

BarycenterScorer

public BarycenterScorer(Hypergraph<V,E> graph)
Creates an instance with the specified graph. Will generate a Distance metric internally assuming that the graph is unweighted.

Parameters:
graph - the input graph


Copyright © 2010 null. All Rights Reserved.