The Hyperspherical Geometry of Community Detection: Modularity as a Distance

Martijn Gösgens, Remco van der Hofstad, Nelly Litvak
7/6/2021
cs.SIstat.ML

Official code: MartijnGosgens/hyperspherical_community_detection (1 star, Python, Apache-2.0, last commit 2023-11-10).

Abstract

We introduce a metric space of clusterings, where clusterings are described by a binary vector indexed by the vertex-pairs. We extend this geometry to a hypersphere and prove that maximizing modularity is equivalent to minimizing the angular distance to some modularity vector over the set of clustering vectors.

Show full abstract

In that sense, modularity-based community detection methods can be seen as a subclass of a more general class of projection methods, which we define as the community detection methods that adhere to the following two-step procedure: first, mapping the network to a point on the hypersphere; second, projecting this point to the set of clustering vectors. We show that this class of projection methods contains many interesting community detection methods. Many of these new methods cannot be described in terms of null models and resolution parameters, as is customary for modularity-based methods. We provide a new characterization of such methods in terms of meridians and latitudes of the hypersphere. In addition, by relating the modularity resolution parameter to the latitude of the corresponding modularity vector, we obtain a new interpretation of the resolution limit that modularity maximization is known to suffer from.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
10PythonFeb 14, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{gsgens2021hyperspherical,
  title  = {The Hyperspherical Geometry of Community Detection: Modularity as a Distance},
  author = {Martijn Gösgens and Remco van der Hofstad and Nelly Litvak},
  year   = {2021},
  eprint = {2107.02645},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.02645}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.02645.svg)](https://codeofpaper.com/paper/2107.02645)

Discussion