Defined in File GroupDegree.hpp
public NetworKit::Algorithm
(Class Algorithm)
Public Functions
Finds the group with the highest group degree centrality according to the definition proposed in ‘The centrality of groups and classes’ by Everett et al. (The Journal of mathematical sociology, 1999). This is a submodular but non monotone function so the algorithm can find a solution that is at least 1/2 of the optimum. Worst-case running time is quadratic, but usually faster in real-world networks. The ‘countGroupNodes’ option also count the nodes inside the group in the score, this make the group degree monotone and submodular and the algorithm is guaranteed to return a (1 - 1/e)-approximation of the optimal solution.
G – A graph.
k – Size of the group of nodes
countGroupNodes – if nodes inside the group should be counted in the centrality score.
Computes the group with maximum degree centrality of the graph passed in the constructor.