My Project
|
For use in networks with negative edge weights. More...
#include <density.h>
Public Member Functions | |
negative_density (double param) | |
double | operator() (typename graph_t::edge_name_t win, typename graph_t::edge_name_t wout, lui k) const |
For use in networks with negative edge weights.
simple_density and complex_density will not work with negative edges. Negative_density will only work with negative edges. (Not entirely true, the communities are senseless if used in an all-positive network)
negative_density< graph_t >::negative_density | ( | double | param | ) | [inline] |
Constructor
param | Lambda value to put weight on edge probability |
double negative_density< graph_t >::operator() | ( | typename graph_t::edge_name_t | win, |
typename graph_t::edge_name_t | wout, | ||
lui | k | ||
) | const [inline, virtual] |
Calculates a density based on the above numbers.
win | Sum of weights of edges with both endpoints in cluster |
wout | Sum of weights of edges with exactly one endpoint in cluster |
k | Size of the cluster |
Implements density< graph_t >.