Pith. sign in

REVIEW 4 major objections 6 minor 17 references

Comparative Analysis of Community Detection Algorithms on the SNAP Social Circles Dataset

T0 review · 4 major / 6 minor · reviewed 2026-08-09 · deepseek-v4-flash

Pith's one-line read Louvain and label propagation emerge as the most robust community detection algorithms on the SNAP Facebook graph.

desk verdict A routine benchmark that ships code but whose headline ranking rests on circular metrics and ignores the dataset's ground-truth labels. read the letter →

arxiv 2502.04341 v1 pith:SB3P4CNS submitted 2025-02-01 cs.SI cs.AI

classification cs.SIcs.AI
keywords communitydetectionclusteringsocialnetworksmediaanalyticsFacebooknetworkSNAPCirclesdatasetLouvainalgorithmlabelpropagation
verification ladder T0 review T1 audit T2 compute T3 formal

The pith

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The reading

This paper tries to answer a practical question: which community detection algorithm should someone use on a real social network when no known answer exists? To find out, it runs six algorithms on the SNAP Social Circles Facebook dataset and scores each partition with six internal quality metrics. The main finding is that Louvain and Label Propagation perform well across the most metrics, while other algorithms win on specific measures but not overall. If the finding holds, it gives practitioners a defensible default choice and a template for comparing algorithms on other social graphs.

What carries the argument

The carrying object is a comparison protocol rather than a new algorithm or theorem: the SNAP Social Circles Facebook graph, treated as a single network of 4,039 nodes and more than 88,000 edges, is partitioned by each algorithm and then each partition is scored by six internal quality metrics. The metrics translate qualitative notions of a good community—dense internal connections, few edges between communities, compact clusters, well-separated centers—into numbers that can be ranked. The protocol works because it treats the algorithms symmetrically, so differences in metric scores are attributed to algorithmic behavior rather than to the evaluator.

What would settle it

Re-score all six partitions against the dataset's ground-truth circles using normalized mutual information or the adjusted Rand index; if Infomap or the leading eigenvector method matches the known circles better than Louvain and Label Propagation, the paper's conclusion that the latter two are the most robust choices would be contradicted.

Watch

Extended reading notes

Core claim

The paper's central claim is that, among K-Means, Louvain, Spectral Clustering, Label Propagation, Infomap, and Leading Eigenvector, the Louvain and Label Propagation algorithms are the most robust choices for detecting communities in the SNAP Social Circles Facebook network. The claim rests on comparing each algorithm's partition with modularity, normalized cut ratio, silhouette score, compactness, Calinski-Harabasz score, and separability. No single algorithm dominates every metric; each has strengths, but Louvain and Label Propagation score well across a wider range, leading the authors to recommend them for general use and to caution that algorithm selection should depend on the dataset and objective.

Load-bearing premise

The ranking assumes that internal quality metrics computed on an algorithm's own output are sufficient to judge community detection, so the ground-truth circles in the SNAP dataset can be ignored.

Editorial extensions

If this is right

  • On Facebook-like social graphs, Louvain and Label Propagation can serve as safe defaults when no ground-truth communities are available, with less risk of trailing badly on any single metric.
  • Algorithms such as Infomap and the leading eigenvector method produce many small communities in this dataset, so they are better suited to tasks that need fine-grained structure rather than a few large clusters.
  • Researchers comparing algorithms on their own networks can reuse the same metric suite to rank methods without relying on labels.
  • Because no algorithm dominates every metric, evaluation should report several metrics rather than a single headline score when choosing a community detection method.

Reading between the lines

Editorial extensions of the paper, not claims the author makes directly.

  • Because the comparison ignores the ground-truth circles that ship with the SNAP dataset, the ranking reflects internal cohesion and separation, not agreement with real friend lists; measuring agreement with those circles could plausibly reorder the winners.
  • The paper treats the dataset as one aggregated 4,039-node graph, although the ground truth is defined per ego network; running the same metrics separately on each ego network is a natural test of whether the ranking survives the aggregation.
  • The number of communities each algorithm finds varies widely—from around 13 for Louvain to 93 for Infomap—so part of what the metrics capture may be partition granularity; a fairer comparison might hold the number of communities fixed.
Share X Bluesky LinkedIn Reddit HN

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, and a circularity audit.

Referee Report

4 major / 6 minor

Summary. The paper reports an empirical comparison of six community detection algorithms (K-Means, Louvain, spectral clustering, label propagation, Infomap, and leading eigenvector) on the SNAP Facebook Social Circles dataset. The authors compute modularity, normalized cut ratio, silhouette score, compactness, Calinski-Harabasz score, and separability for each algorithm, and conclude in Section 7 that Louvain and label propagation are 'particularly robust choices.' The paper provides visualizations and a link to code.

Significance. The topic is of practical interest, and the paper has the merit of making its code public and covering standard algorithms. If the central ranking were established through external validation against the ground-truth circles, the paper could be a useful practical reference. However, the current design—internal metrics that partly coincide with the algorithms' objectives, no ground-truth baseline, no error bars, and an unspecified node embedding—means the headline conclusion is not currently established. The significance is therefore limited unless the evaluation is substantially strengthened.

major comments (4)
  1. [Section 6, Fig. 12; Section 7] The headline conclusion that Louvain and Label Propagation are 'particularly robust choices' is not supported by the reported evidence, because several of the metrics are the objective functions of the algorithms being compared. Modularity (Eq. 1) is the objective optimized by Louvain; normalized cut (Eq. 2) is the criterion spectral clustering is designed to minimize; compactness (Eq. 6) and, indirectly, the Calinski-Harabasz score (Eq. 7) are the K-Means objective. A ranking that rewards each algorithm partly for optimizing its own objective cannot establish robustness. Since the SNAP Social Circles dataset includes ground-truth circles, the paper should report agreement measures such as NMI or adjusted Rand index against those circles; without this external anchor, the claim that the detected communities are 'meaningful' (Abstract) is unjustified.
  2. [Section 5.5A; Eqs. (3)-(6), (8)] The K-Means and spectral clustering results depend on a vector embedding of nodes that is never described. The silhouette score (Eq. 3), compactness (Eq. 6), and separability (Eq. 8) all require pairwise distances d(i,j) or distances to centroids; for a graph, these quantities are undefined unless an embedding or distance model is specified. The paper must state the embedding used and justify it; otherwise the metric values for K-Means and spectral clustering cannot be interpreted or reproduced.
  3. [Section 5.1; Section 7] The dataset is described only as 'more than 4000 nodes having more than 88,000 edges.' The SNAP Social Circles dataset is a collection of ego networks, each with its own ground-truth circles. The paper appears to analyze a single aggregated graph, but it never states how the ego networks were combined, whether isolated nodes were removed, or how ground-truth circles would transfer to the aggregated graph. This omission affects both the internal-metric analysis and any external validation; the authors should describe the graph construction precisely.
  4. [Section 6, Fig. 12; Section 5.5] Louvain, Label Propagation, K-Means, spectral clustering, and the leading eigenvector method are stochastic or initialization-dependent. The paper reports a single value per metric with no error bars, no repeated runs, and no significance tests. The observed differences between algorithms could therefore be run-to-run noise. The authors should report means and standard deviations over multiple random seeds, or otherwise demonstrate stability.
minor comments (6)
  1. [Section 4.2, Eq. (2)] There is a typo: 'number od edges' should read 'number of edges.'
  2. [Section 6.1 vs. Section 7] Section 6.1 says six algorithms were tested on 'five separate metrics,' while Section 7 counts 'six key metrics'; the metric list actually contains six entries. Please make the count consistent.
  3. [Section 5.5F] The 'Leading Eigenvector Algorithm' is described as 'frequently called the Newman-Girvan algorithm,' but Newman-Girvan is a different betweenness-based divisive algorithm. The lead eigenvector method is a separate spectral method (Newman 2006). Also, the sentence 'The Infomap Algorithm identified 18 communities' in this section appears to be a typo; it should refer to the leading eigenvector method.
  4. [Figure captions 14, 15, 18] The captions are inconsistent with the definitions in Section 4.2: normalized cut is better when lower, compactness is better when lower, and silhouette score is better when higher. The captions state the opposite directions and should be corrected.
  5. [Section 6.1, Fig. 12] Figure 12 is a screenshot; the numeric metric values should be provided in a table so that the results are reproducible from the written paper alone.
  6. [Keywords] 'Commuity Detection' should be 'Community Detection.'

Circularity Check

2 steps flagged · score 4.0 of 10

Metric columns double as algorithm objectives (modularity for Louvain, compactness for K-Means), making part of the comparison self-referential, but the robustness claim still rests on other metrics.

  1. self definitional [Section 4.2 Eq. (1); Section 5.5 B; Section 6.1 Figure 12]
    "Modularity : ... Q = 1/2m Σ [Aij − kikj/2m]δ(ci,cj) (1). ... The Louvain method, developed by Vincent D. Blondel et al., is based on the optimization of modularity, a metric that measures the quality of a partition of a network into communities."

    The comparison table in Figure 12 includes Modularity Score as one of the six metrics. Louvain's own algorithm is defined as greedy modularity maximization, so a high modularity score for Louvain is produced by its objective function rather than discovered by an independent judge. Using that column as evidence that Louvain is 'robust' partially scores the algorithm on its own loss function.

  2. self definitional [Section 4.2 Eq. (6) and Section 5.5 A Eq. (9)]
    "Compactness = Σ_{i=1}^k (1/|C_i|) Σ_{x⊂C_i} dist(x, μ_i)^2 (6). ... arg min_S Σ_{i=1}^k Σ_{x⊂S_i} ||x − μ_i||^2 (9)"

    K-Means is defined by minimizing the sum of squared distances of points to their assigned centroid. Compactness is the size-averaged version of the same within-cluster squared distances. Therefore K-Means' compactness score is essentially its own training objective renamed as an evaluation metric; the compactness comparison is not an independent test of community quality for K-Means.

full rationale

The paper is a comparative benchmark rather than a derivation, and most of its machinery is self-contained. The concrete circularity is partial: two of the six evaluation metrics coincide with the objective functions of two tested algorithms. Louvain's modularity score is the exact quantity Louvain maximizes (Eq. 1 vs. Sec. 5.5B), and Compactness (Eq. 6) is the size-averaged within-cluster sum of squares that K-Means minimizes (Eq. 9). Thus the Figure 12 columns for Modularity and Compactness are not neutral adjudicators for those algorithms. The headline conclusion nevertheless names Louvain and Label Propagation as robust 'across multiple metrics,' and the remaining metrics — normalized cut, silhouette, Calinski-Harabasz, separability — are not objectives of Louvain or Label Propagation, so the central claim retains independent content and is not fully forced. There is no load-bearing self-citation, no imported uniqueness theorem, and no fitted parameter renamed as a prediction; the absence of ground-truth-circle agreement (NMI/ARI) and error bars is a validity limitation, not circularity. A score of 4 reflects partial metric-objective circularity without total reduction.

Assumptions & free parameters 3 free parameters · 3 assumptions · 0 invented entities

The central claim rests on three assumptions: internal metrics are valid without ground truth, the aggregated Facebook graph is the right object of study, and the node-vector representation used by K-Means and spectral clustering exists and is meaningful. The only explicit fitted parameter is the K-Means cluster count k=15, chosen from the same data. No new entities are introduced.

free parameters (3)
  • Number of clusters k for K-Means = 15
    Section 5.5 A states 'After experimenting with various values of K ... setting the number of clusters to 15 yielded the most optimal results.' This is a hand-chosen parameter that affects all cluster-quality metrics for K-Means, and no cross-validation or criterion is reported.
  • Number of clusters for Spectral Clustering
    The paper never states the number of clusters used for spectral clustering in Section 5.5 C, yet this choice determines the partition and all subsequent metrics.
  • Random seed or initialization for stochastic algorithms
    Louvain, Label Propagation, and K-Means are stochastic or initialization dependent, but each is run once without a reported seed, so metric comparisons have no error bars or variance estimate.
assumptions (3)
  • domain assumption Internal clustering metrics evaluated on an algorithm's own output are treated as valid measures of community detection quality, without reference to ground-truth circles.
    Section 6 and Section 7 draw conclusions from modularity, normalized cut, silhouette, compactness, and separability, but the SNAP Social Circles dataset provides ground-truth circles per ego network that are never used. This assumes internal coherence is sufficient for correctness.
  • domain assumption The SNAP Social Circles dataset is represented as a single aggregated undirected graph for all algorithms.
    Section 5.1 describes 'more than 4000 nodes, more than 88,000 edges', matching the aggregated facebook_combined graph. Ground-truth circles are defined per ego network; the paper does not state this aggregation or justify it.
  • ad hoc to paper K-Means and spectral clustering are applied to some vector embedding of nodes, although the embedding is never described.
    Section 5.5 A and C present Euclidean distance objectives (Eq. 9, Eq. 6, Eq. 8) but never specify what feature vectors x represent for graph nodes. Without this, the K-Means and spectral results are not reproducible.

how reviews work

0 comments
Cite this review

Pith. "Pith review of Comparative Analysis of Community Detection Algorithms on the SNAP Social Circles Dataset." pith.science (2026). https://pith.science/paper/SB3P4CNS

@misc{pith2026250204341,
  author       = {Pith},
  title        = {Pith review of: Comparative Analysis of Community Detection Algorithms on the SNAP Social Circles Dataset},
  year         = {2026},
  howpublished = {\url{https://pith.science/paper/SB3P4CNS}},
  note         = {Machine review of arXiv:2502.04341}
}
read the original abstract

In network research, Community Detection has always been a topic of significant interest in network science, with numerous papers and algorithms proposing to uncover the underlying structures within networks. In this paper, we conduct a comparative analysis of several prominent community detection algorithms applied to the SNAP Social Circles Dataset, derived from the Facebook Social Media network. The algorithms implemented include Louvain, Girvan-Newman, Spectral Clustering, K-Means Clustering, etc. We evaluate the performance of these algorithms based on various metrics such as modularity, normalized cut-ratio, silhouette score, compactness, and separability. Our findings reveal insights into the effectiveness of each algorithm in detecting various meaningful communities within the social network, shedding light on their strength and limitations. This research contributes to the understanding of community detection methods and provides valuable guidance for their application in analyzing real-world social networks.

Figures

Figures reproduced from arXiv: 2502.04341 by the authors.

Figure 1
Figure 1. Approach Used for Implementation 5.3 Data Analysis A quick, initial analysis shows more than 95% of nodes have a degree lying between 0 and 200. While a few nodes - possibly the major hub nodes have a much higher degree. (See [PITH_FULL_IMAGE:figures/full_fig_p007_1.png] view at source ↗
Figure 2
Figure 2. Degree Distribution of nodes in the dataset [PITH_FULL_IMAGE:figures/full_fig_p008_2.png] view at source ↗
Figure 3
Figure 3. Cumulative Distribution Plot of nodes in the dataset [PITH_FULL_IMAGE:figures/full_fig_p008_3.png] view at source ↗
Figures from the paper (15 more)
Figure 4
Figure 4. Figure 4: Degree Centrality Plot of each node 5.4 Initial Visualization In our research, we employed the matplotlib library to conduct preliminary vi￾sualizations of the SNAP dataset. Matplotlib, a widely-used Python plotting library, offers a versatile toolkit for creating a va…
Figure 5
Figure 5. Figure 5: where µi = 1 |Si | X x⊂Si x (10) K-means Clustering aims to partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean, serving as a prototype of the cluster. [7] [8] After experimenting with various values of K in t…
Figure 6
Figure 6. Figure 6: Communities detected by KMeans Clustering various fields, including social network analysis, biological network analysis, and more [10]. A total of 13 communities were detected by Louvain Algorithm which has been visualized below. (See [PITH_FULL_IMAGE:figures/full_fi…
Figure 7
Figure 7. Figure 7: Communities detected by Louvain Algorithm C) Spectral Clustering : Spectral clustering is an effective method frequently used for community de￾tection in network analysis. It leverages the spectral properties of the network’s adjacency matrix or Laplacian matrix to par…
Figure 8
Figure 8. Figure 8: Communities detected by Spectral Clustering D) Label Propagation Algorithm : Label propagation is a simple yet effective algorithm for community detection in networks. It operates by iteratively updating the community assignments of nodes according to the labeling of t…
Figure 9
Figure 9. Figure 9: Communities detected by Label Propagation Algorithm E) Infomap Algorithm : The Infomap algorithm is a widely used technique for detecting communities in networks, particularly in the realm of complex systems and network science. Developed by Martin Rosvall and Carl T. …
Figure 10
Figure 10. Figure 10: Communities detected by Infomap Algorithm F) Leading Eigenvector Algorithm : The leading eigenvector algorithm, frequently called the Newman-Girvan al￾gorithm, is a prominent method for community detection in complex networks. Developed by Mark Newman and Michelle Gir…
Figure 11
Figure 11. Figure 11: Communities detected by Leading Eigen Vector Algorithm 6 Comparison of Algorithms 6.1 Overview of all metrics The table below shows the metric values of all algorithms applied in our imple￾mentation. As mentioned above, six community detection algorithms have been tes…
Figure 12
Figure 12. Figure 12: An overview of all metric values 6.2 Graphical Visualization of comparisons Here we compare all the algorithms with respect to each metric using radar charts. By plotting each algorithm as a separate axis and representing the met￾rics as spokes emanating from the cent…
Figure 13
Figure 13. Figure 13: Comparison of Modularity Score of the algorithms (Higher values are better) 7 Conclusion In conclusion, our research has rigorously evaluated five prominent community detection algorithms across six key metrics: Modularity, Normalized Cut Ra￾tio, Compactness, Calinski…
Figure 14
Figure 14. Figure 14: Comparison of Normalized Cut Ratio of the algorithms (Higher values indicate more edges between communities) [PITH_FULL_IMAGE:figures/full_fig_p017_14.png]
Figure 15
Figure 15. Figure 15: Comparison of Compactness Score of the algorithms (Higher values indicate more cohesion within communities) [PITH_FULL_IMAGE:figures/full_fig_p017_15.png]
Figure 16
Figure 16. Figure 16: Comparison of Calinski-Harabasz Score of the algorithms (Higher values in￾dicate more defined, distinct communities) [PITH_FULL_IMAGE:figures/full_fig_p018_16.png]
Figure 17
Figure 17. Figure 17: Comparison of Separability Score of the algorithms (Higher values indicate well-separated communities) [PITH_FULL_IMAGE:figures/full_fig_p018_17.png]
Figure 18
Figure 18. Figure 18: Comparison of Silhouette Score of the algorithms (Lower values indicate am￾biguous clustering) Our findings reveal that while each algorithm excels in certain aspects, there is no one-size-fits-all solution for community detection. Among the algorithms examined, the L…

Discussion (0). Continue with ORCID to comment.

Reference graph

Works this paper leans on

17 extracted references · 15 canonical work pages

  1. [1]

    Community detection in graphs

    Fortunato, Santo. "Community detection in graphs." Physics reports 486.3-5 (2010): 75-174

  2. [2]

    Community detection in networks: A user guide

    Fortunato, Santo, and Darko Hric. "Community detection in networks: A user guide." Physics reports 659 (2016): 1-44

  3. [3]

    Community detection algorithms: a comparative analysis

    Lancichinetti, Andrea, and Santo Fortunato. "Community detection algorithms: a comparative analysis." Physical review E 80.5 (2009): 056117. 20 Yash Malode, Amit Aylani , Arvind Bhardwaj, and Deepak Hajoary

  4. [4]

    Community detection in networks: A multidisci- plinary review

    Javed, Muhammad Aqib, et al. "Community detection in networks: A multidisci- plinary review." Journal of Network and Computer Applications 108 (2018): 87-111

  5. [5]

    Community detection in social networks

    Bedi, Punam, and Chhavi Sharma. "Community detection in social networks." Wi- ley interdisciplinary reviews: Data mining and knowledge discovery 6.3 (2016): 115- 135

  6. [6]

    Snap: A general-purpose network analysis and graph-mining library

    Leskovec, Jure, and Rok Sosič. "Snap: A general-purpose network analysis and graph-mining library." ACM Transactions on Intelligent Systems and Technology (TIST) 8.1 (2016): 1-20

  7. [7]

    Review on determining number of Cluster in K-Means Clustering

    Kodinariya, Trupti M., and Prashant R. Makwana. "Review on determining number of Cluster in K-Means Clustering." International Journal 1.6 (2013): 90-95

  8. [8]

    Unsupervised K-means clustering algo- rithm

    Sinaga, Kristina P., and Miin-Shen Yang. "Unsupervised K-means clustering algo- rithm." IEEE access 8 (2020): 80716-80727

Show all 17 references
  1. [9]

    Fast unfolding of communities in large networks

    Blondel, Vincent D., et al. "Fast unfolding of communities in large networks." Jour- nal of statistical mechanics: theory and experiment 2008.10 (2008): P10008

  2. [10]

    Fast unfolding of communities in large networks: 15 years later

    Blondel, Vincent, Jean-Loup Guillaume, and Renaud Lambiotte. "Fast unfolding of communities in large networks: 15 years later." arXiv preprint arXiv:2311.06047 (2023)

  3. [11]

    Spectral clustering with graph neural networks for graph pooling

    Bianchi, Filippo Maria, Daniele Grattarola, and Cesare Alippi. "Spectral clustering with graph neural networks for graph pooling." International conference on machine learning. PMLR, 2020

  4. [12]

    On spectral clustering: Analysis and an algorithm

    Ng, Andrew, Michael Jordan, and Yair Weiss. "On spectral clustering: Analysis and an algorithm." Advances in neural information processing systems 14 (2001)

  5. [13]

    A tutorial on spectral clustering

    Von Luxburg, Ulrike. "A tutorial on spectral clustering." Statistics and computing 17 (2007): 395-416

  6. [14]

    A new attributed graph clustering by using label prop- agation in complex networks

    Berahmand, Kamal, et al. "A new attributed graph clustering by using label prop- agation in complex networks." Journal of King Saud University-Computer and In- formation Sciences 34.5 (2022): 1869-1883

  7. [15]

    Near linear time algorithm to detect community structures in large-scale networks

    Raghavan, Usha Nandini, Réka Albert, and Soundar Kumara. "Near linear time algorithm to detect community structures in large-scale networks." Physical review E 76.3 (2007): 036106

  8. [16]

    & Bergstrom, C

    Rosvall, M., Axelsson, D. & Bergstrom, C. The map equation. Eur. Phys. J. Spec. Top. 178, 13–23 (2009). https://doi.org/10.1140/epjst/e2010-01179-1

  9. [17]

    Finding community structure in networks using the eigenvec- tors of matrices

    Newman, Mark EJ. "Finding community structure in networks using the eigenvec- tors of matrices." Physical review E 74.3 (2006): 036104

Pith tools

Reviewed August 9, 2026 · model on record in the stance chip above.