# taynaud/python-louvain

Louvain Community Detection

Repository: https://github.com/taynaud/python-louvain
Canonical: https://ross.abutalabs.com/products/python-louvain
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: networkx, community-detection, louvain-method
Last push: 2024-03-16T17:04:10+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3669, "days_push": 900, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1046, forks 199 (observed 2026-08-28T04:03:21.760258+00:00)

## What it is
A Python library implementing the Louvain method for community detection in graphs, integrating with NetworkX. It also provides a command-line utility for debugging purposes.

## Use cases
- detect communities in a networkx graph
- partition a graph into clusters with the louvain algorithm
- find community structure in social networks
- color graph nodes by community in matplotlib
- run louvain community detection from the command line

## When to choose
- you need fast modularity-based community detection on NetworkX graphs
- you want a simple, well-established Python API for graph partitioning

## When to avoid
- you need other clustering algorithms like Leiden or label propagation
- you need large-scale distributed graph processing

## Facets
- artifact type: library
- maturity: stable
- function: data-science, math
- domain: data-science, analytics
- platform: python, cli
- tags: community-detection, louvain, networkx, graph-analysis, clustering, algorithms

## Member repositories
- taynaud/python-louvain (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:21.760258+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:01:59.914092+00:00, confidence not recorded.
  - readme: https://github.com/taynaud/python-louvain (fetched 2026-08-28T04:03:21.760258+00:00, sha 1fd3feafea94)
  - registry_pypi: https://pypi.org/pypi/python-louvain/json (fetched 2026-08-29T13:03:01.800346+00:00, sha baed353d6fb3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
