public class ClosenessCentrality<V,E> extends DistanceCentralityScorer<V,E>
averaging, distance, graph, ignore_missing, ignore_self_distances, output
Constructor and Description |
---|
ClosenessCentrality(Hypergraph<V,E> graph)
Creates an instance which measures distance on the graph without edge weights.
|
ClosenessCentrality(Hypergraph<V,E> graph,
Distance<V> distance)
Creates an instance using the specified vertex/vertex distance metric.
|
ClosenessCentrality(Hypergraph<V,E> graph,
org.apache.commons.collections15.Transformer<E,? extends java.lang.Number> edge_weights)
Creates an instance which measures distance using the specified edge weights.
|
getVertexScore
public ClosenessCentrality(Hypergraph<V,E> graph, Distance<V> distance)
graph
- the inputdistance
- the vertex/vertex distance metric.public ClosenessCentrality(Hypergraph<V,E> graph, org.apache.commons.collections15.Transformer<E,? extends java.lang.Number> edge_weights)
graph
- the input graphedge_weights
- the edge weights to be used to determine vertex/vertex distancespublic ClosenessCentrality(Hypergraph<V,E> graph)
graph
- Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence