public class BarycenterScorer<V,E> extends DistanceCentralityScorer<V,E>
averaging, distance, graph, ignore_missing, ignore_self_distances, output
Constructor and 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.
|
getVertexScore
public BarycenterScorer(edu.uci.ics.jung.graph.Hypergraph<V,E> graph, Distance<V> distance)
graph
- the input graphdistance
- the distance metric to usepublic BarycenterScorer(edu.uci.ics.jung.graph.Hypergraph<V,E> graph, org.apache.commons.collections4.Transformer<E,? extends java.lang.Number> edge_weights)
Distance
metric internally based on the edge weights.graph
- the input graphedge_weights
- the edge weights to use to calculate vertex/vertex distances