Class BarycenterScorer<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.algorithms.scoring.DistanceCentralityScorer<V,E>
-
- edu.uci.ics.jung.algorithms.scoring.BarycenterScorer<V,E>
-
- All Implemented Interfaces:
VertexScorer<V,java.lang.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
Constructors Constructor Description BarycenterScorer(edu.uci.ics.jung.graph.Hypergraph<V,E> graph)
Creates an instance with the specified graph.BarycenterScorer(edu.uci.ics.jung.graph.Hypergraph<V,E> graph, Distance<V> distance)
Creates an instance with the specified graph and distance metric.BarycenterScorer(edu.uci.ics.jung.graph.Hypergraph<V,E> graph, org.apache.commons.collections4.Transformer<E,? extends java.lang.Number> edge_weights)
Creates an instance with the specified graph and edge weights.
-
Method Summary
-
Methods inherited from class edu.uci.ics.jung.algorithms.scoring.DistanceCentralityScorer
getVertexScore
-
-
-
-
Constructor Detail
-
BarycenterScorer
public BarycenterScorer(edu.uci.ics.jung.graph.Hypergraph<V,E> graph, Distance<V> distance)
Creates an instance with the specified graph and distance metric.- Parameters:
graph
- the input graphdistance
- the distance metric to use
-
BarycenterScorer
public BarycenterScorer(edu.uci.ics.jung.graph.Hypergraph<V,E> graph, org.apache.commons.collections4.Transformer<E,? extends java.lang.Number> edge_weights)
Creates an instance with the specified graph and edge weights. Will generate aDistance
metric internally based on the edge weights.- Parameters:
graph
- the input graphedge_weights
- the edge weights to use to calculate vertex/vertex distances
-
-