Metraipolis › archive › dc_b3c254099288

netseg: a Python Package for Measuring Structural Polarization and Segregation in Social Networks — arXiv:2609.16088

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.16088
License (as archived)
CC0-1.0
Archived
2026-10-15T19:30:57.197Z
SHA-256 of the archived text
1137406f82f07d4df6fed15b9597a0fd829dda3b000280d936b18f36b7c36a34
Stable URL of this page
https://metraipolis.com/documento/dc_b3c254099288

How to cite

netseg: a Python Package for Measuring Structural Polarization and Segregation in Social Networks — arXiv:2609.16088 — arXiv (en), https://arxiv.org/abs/2609.16088 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b3c254099288 (Metraipolis archive dc_b3c254099288, sha256 1137406f82f07d4df6fed15b9597a0fd829dda3b000280d936b18f36b7c36a34)
BibTeX
@misc{dcb3c254099288,
  title = {netseg: a Python Package for Measuring Structural Polarization and Segregation in Social Networks — arXiv:2609.16088},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.16088},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b3c254099288; sha256 1137406f82f07d4df6fed15b9597a0fd829dda3b000280d936b18f36b7c36a34},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.16088. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

The study of structural polarization and segregation in social networks is an established line of research, and the quantification of both phenomena proceeds through a set of widely cited network indices. The code implementing those indices, however, is seldom released and almost never tested. We present netseg, a comprehensively documented Python package implementing these indices, most of them generalized to more than two groups and to directed as well as undirected input. It ports the R package of the same name and adds measures the R version lacks, among them Random Walk Controversy, Boundary Connectivity, Dipole Moment, and Moran's I. The package operates on igraph objects and performs the underlying graph operations (e.g., neighborhood queries and random-walk simulation) through igraph's Python interface, so that they execute in compiled code rather than in interpreted Python. For several of the indices this yields runtimes orders of magnitude below those of the available open-source implementations, which the documentation reports in benchmarks. Most of these indices are defined as a divergence from a null model, and published implementations fix that null model to a uniform random graph of matching density. netseg accepts an ensemble of graphs as a sample from an arbitrary null model, and distinguishes indices that already incorporate a baseline from those that do not, adjusting the comparison accordingly to avoid double subtraction. The documentation provides, for each index, a worked empirical example, its behaviour at the degenerate cases where it is undefined, a benchmark, and the procedure for substituting a custom null model. We report the behaviour of every index over a parameter sweep of a generative opinion model, and apply them to a county-level railroad network built from nineteenth-century operator records joined to full-count census data.

Tema degli esploratori: governance digitale e beni comuni (retro-catalogo arXiv: annunci del 2026-09-16 in cs.CY).
Categorie arXiv: Social and Information Networks (cs.SI) ; Computers and Society (cs.CY).
Pagina del lavoro: https://arxiv.org/abs/2609.16088 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-15T18:39:08.616Z dalla pagina https://arxiv.org/catchup/cs.CY/2026-09-16?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).