Threshold termination function for the betweenness centrality clustering algorithm. More...
#include <bc_clustering.hpp>
Public Types | |
typedef T | centrality_type |
Public Member Functions | |
bc_clustering_threshold (T threshold) | |
Terminate clustering when maximum absolute edge centrality is below the given threshold. More... | |
template<typename Graph > | |
bc_clustering_threshold (T threshold, const Graph &g, bool normalize=true) | |
Terminate clustering when the maximum edge centrality is below the given threshold. More... | |
template<typename Graph , typename Edge > | |
bool | operator() (T max_centrality, Edge, const Graph &) |
Returns true when the given maximum edge centrality (potentially normalized) falls below the threshold. More... | |
Protected Attributes | |
T | threshold |
T | dividend |
Threshold termination function for the betweenness centrality clustering algorithm.
typedef T boost::bc_clustering_threshold< T >::centrality_type |
|
inlineexplicit |
Terminate clustering when maximum absolute edge centrality is below the given threshold.
|
inline |
Terminate clustering when the maximum edge centrality is below the given threshold.
threshold | the threshold value |
g | the graph on which the threshold will be calculated |
normalize | when true, the threshold is compared against the normalized edge centrality based on the input graph; otherwise, the threshold is compared against the absolute edge centrality. |
References boost::bc_clustering_threshold< T >::dividend, boost::n, boost::locale::normalize(), boost::num_vertices(), and T.
|
inline |
Returns true when the given maximum edge centrality (potentially normalized) falls below the threshold.
References boost::bc_clustering_threshold< T >::dividend, and boost::bc_clustering_threshold< T >::threshold.
|
protected |
|
protected |
Referenced by boost::bc_clustering_threshold< T >::operator()().