Skip to main content

netseg is a python package for measuring segregation and structural polarization in social networks.

Project description

netseg

netseg is a python and R package for measuring segregation and structural polarization in social networks. It was developed to address several key gaps in the current ecosystem: netseg logo

  • A Unified Framework: While analyzing network segregation and polarization is common, the myriad of existing measures makes cross-network comparisons exceedingly difficult. netseg provides a centralized toolkit for standardizing these measurements.

  • Extensively Documented: netseg is extensively documented. From various case by case usage examples to the advanced null-model selection, it offers a clear guide for your research.

  • Advanced Null-Model Comparison: Many existing approaches rely on purely random graphs to quantify excess polarization or segregation, a notoriously low baseline. netseg allows you to use customized network ensembles as null models, enabling robust, comparative segregation analysis.

  • Extensions and Improved Optimization netseg offers extensions for already existing measures, calculating the structural polarization and segregation in directed and undirected networks with multiple groups. netseg is build on igraph and NumPy , it offers near bare-metal speed with NumPy's vectorization and igraph's C backend.

Support and Contact

If you come across any issues, please visit the repository pages.

Installation

You can install netseg through PyPI with

pip install netseg

Or you can install directly from the source without the blobs with

git clone --filter=blob:none --sparse https://codeberg.org/OnurB/netseg.git
cd netseg
git sparse-checkout set src
pip install .

Documentation

You can reach to the documentation here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netseg-0.1.5.tar.gz (41.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netseg-0.1.5-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file netseg-0.1.5.tar.gz.

File metadata

  • Download URL: netseg-0.1.5.tar.gz
  • Upload date:
  • Size: 41.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for netseg-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d1146a249e230d25065538503313387075609c8142075d90fad60ec43e7d8a2d
MD5 b8dae9cd5ab9cb9a7719cf528552fcc1
BLAKE2b-256 979b495e677085cbcfd1a63b8a614a083c063c42764b3b5741b45dea46424a92

See more details on using hashes here.

File details

Details for the file netseg-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: netseg-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for netseg-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 80fb64aca8e91a3de10c3d3ec4dc666523e19435b5eac710b182158a15d8ded7
MD5 976fc2a4ca7ad36b150e74634aca5c17
BLAKE2b-256 22a49f0b542542c4e6926d784a85eb37545f994a0fe46c06e7dbba2e11e58ccf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page