arXiv Science⌕ Search

arXiv · 2610.04668

Exact computation of the network modularity with branch-and-bound

Abstract

We consider the computation of the network modularity, a common measure of the structure of networks or graphs that quantifies the division of a network into modules or clusters. The computation of the network modularity is an NP-hard problem, thus making its exact computation often infeasible in practice. This has resulted in the development of several heuristics in the literature. In this work, we consider the exact computation of the network modularity with the help of a branch-and-bound algorithm. Our algorithm is guaranteed to find the optimal clustering that maximizes the network modularity, however it achieves this without a full exploration of the search space. This is accomplished by bounding partial solutions and discarding them if it can be foreseen that a partial solution will not yield an improvement over an existing solution. We assess our algorithm with respect to accuracy and runtime and compare it to a brute-force approach as well as two benchmark algorithms, simulated annealing and the Louvain method.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Emily Weng, Georg Hahn. 2026-10-22. Exact computation of the network modularity with branch-and-bound. https://arxiv.org/abs/2610.04668

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

SAHG: Sector-Anisotropic Hyperbolic Graph Model for Social Bot Detection

LLM-driven social bots can generate fluent, human-like text, reducing the discriminative advantage of content-based detection alone. However, coordinated campaigns still leave relational patterns -- interactions, behavioral similarity, shared neighborhoods, community positions, and coordinated activity -- that graph-based methods can exploit. Existing graph detectors face two challenges when exploiting such evidence. First, Euclidean GNNs distort hierarchical and scale-free social graphs; while hyperbolic geometry addresses this volume-growth mismatch, fixed-curvature models still assign uniform geometric resolution to structural directions with different densities and separation needs. Second, relational evidence is not always reliable: sophisticated bots forge heterophilic connections with genuine users, causing neighborhood aggregation to mix bot and human signals and dilute account-level evidence. We propose SAHG (Sector-Anisotropic Hyperbolic Graph), addressing both challenges. SAHG learns a direction-dependent curvature field $γ(u)$ that adapts geometric resolution across structural directions, and uses sector prototypes to convert angular concentration and alignment into classifier-readable features. To prevent contaminated aggregation from overwhelming account-level evidence, SAHG encodes per-account features and graph-neighborhood representations in two independent SAH channels, fusing them only at the classifier. Experiments on Fox8-23, BotSim-24, and MGTAB show that SAHG achieves the highest accuracy and F1 on all three benchmarks, outperforming feature-based, graph-based, LLM-based, and isotropic hyperbolic baselines. Ablation and geometric analyses confirm the effectiveness of the anisotropic geometry and dual-channel design.

cs.SI↗

In-Browser Human-AI Co-Writing for Counterspeech: An Exploratory User Study of Agency, Perceived Response Quality, and Time

Writing counterspeech that challenges online hate speech can be cognitively and emotionally demanding, whereas fully automated generation may weaken users' sense of voice and responsibility. We present an in-browser AI-assisted co-writing tool that enables users to contribute their own ideas and offers three editable suggestions generated by a large language model using dynamically retrieved hate speech-counterspeech examples from the Multitarget CONAN dataset. We evaluated the tool in an exploratory within-subject study with ten participants, complemented by think-aloud observations and semi-structured interviews with half of the participants. Participants wrote responses to three self-selected hate speech instances without assistance and then repeated the task with the tool. Final responses were subsequently peer-rated for empathy, non-toxicity, relevance, specificity, and persuasiveness. Participants evaluated the interface positively, and qualitative accounts linked user input, selection among alternatives, and small edits to perceived agency and responsibility. Assisted responses received higher descriptive mean ratings across all five proxies, with the largest difference for empathy. Mean composition time increased from 2.52 to 3.88 minutes. Qualitative findings further revealed a tension between empathy-oriented outputs and users' desire to express legitimate anger or direct disagreement. We contribute exploratory design guidance for treating AI-assisted counterspeech as deliberative co-writing rather than automated text production.

cs.SI↗

Schadenfreude in the Digital Public Sphere: A Cross-National, Decade-Long Analysis of Facebook News Engagement

Pleasure at the misfortune of others, or schadenfreude, is widely believed to have become a routine feature of online news audiences, yet its prevalence and social patterning have rarely been measured at scale. Here, we examine ten years (2015-2024) of Facebook engagement with misfortune news across nine major outlets spanning the political spectrum in the United States, the United Kingdom, and India. We separate schadenfreude, in which a commenter expresses pleasure at the misfortune, from hostility without pleasure, using an ensemble of three open-weight language models validated against human annotation, and classify 1.06 million post-comment pairs. We find that schadenfreude constitutes 26% of comments on news covering misfortune, a third more than the rate implied by "Haha" reactions on the same posts, and that the two measures agree at the post level (Spearman $ρ= 0.43$) while hostility does not ($ρ= 0.07$). Schadenfreude varies by less than one percentage point across the three countries and concentrates where theories of deserved suffering predict: on misfortunes framed as self-inflicted, on scandals and defeats rather than deaths, and on public figures rather than ordinary people. Hostility, in contrast, varies widely across outlets and responds to politics. Audiences of a left-leaning US outlet became 5.5 percentage points less hostile while their party held the presidency, a pattern robust across specifications, whereas no comparable power effect on schadenfreude survives robustness checks. Cross-national differences that a toxicity-based measure attributes to schadenfreude turn out, under the pleasure-explicit measure, to be differences in hostility. These results show that schadenfreude is a measurable mode of news engagement, distinct from toxicity and patterned by the moral structure of misfortune rather than by country or political power.

cs.SI↗