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,Double>
Assigns scores to each vertex according to the sum of its distances to all other vertices.
-
Field Summary
Fields inherited from class DistanceCentralityScorer
averaging, distance, graph, ignore_missing, ignore_self_distances, output -
Constructor Summary
ConstructorsConstructorDescriptionBarycenterScorer(Hypergraph<V, E> graph) Creates an instance with the specified graph.BarycenterScorer(Hypergraph<V, E> graph, com.google.common.base.Function<E, ? extends Number> edge_weights) Creates an instance with the specified graph and edge weights.BarycenterScorer(Hypergraph<V, E> graph, Distance<V> distance) Creates an instance with the specified graph and distance metric. -
Method Summary
Methods inherited from class DistanceCentralityScorer
getVertexScore
-
Constructor Details
-
BarycenterScorer
Creates an instance with the specified graph and distance metric.- Parameters:
graph- the input graphdistance- the distance metric to use
-
BarycenterScorer
public BarycenterScorer(Hypergraph<V, E> graph, com.google.common.base.Function<E, ? extends Number> edge_weights) Creates an instance with the specified graph and edge weights. Will generate aDistancemetric internally based on the edge weights.- Parameters:
graph- the input graphedge_weights- the edge weights to use to calculate vertex/vertex distances
-
BarycenterScorer
Creates an instance with the specified graph. Will generate aDistancemetric internally assuming that the graph is unweighted.- Parameters:
graph- the input graph
-