Skip to main content

Infomap network clustering algorithm

Project description

CI Docs Docker smoke

Infomap

Infomap is a network clustering algorithm based on the Map equation. This repository contains the native CLI, the Python package, the R package, the JavaScript web worker, the Docker images, and the source for the published Python documentation.

Start with mapequation.org/infomap/ for the user guide and CHANGELOG.md for release notes.

For contributing, security reporting, and maintainer workflows, see CONTRIBUTING.md, SECURITY.md, BUILD.md, ARCHITECTURE.md, and AGENTS.md.

Install

Python package

Install from PyPI:

pip install infomap

Upgrades use the usual pip flow:

pip install --upgrade infomap

The package also installs the infomap CLI entry point. The Python API reference lives at Infomap Python API.

Quick start with Python:

from infomap import Infomap, InfomapOptions

options = InfomapOptions(two_level=True, silent=True, num_trials=20)
im = Infomap.from_options(options)
im.add_link(0, 1)
im.add_link(1, 2)
im.run()

print(im.num_top_modules, im.codelength)

R package

Pre-built binaries are published on r-universe; this is the recommended path:

install.packages(
  "infomap",
  repos = c("https://mapequation.r-universe.dev", "https://cloud.r-project.org")
)

Quick start with R:

library(infomap)

im <- Infomap(silent = TRUE, two_level = TRUE, num_trials = 20)
im$add_link(0, 1)
im$add_link(1, 2)
im$run()

print(im$num_top_modules)
print(im$codelength)

See ?Infomap for the user-facing constructor plus the InfomapClass method and active-binding reference. The R-specific source README lives at interfaces/R/infomap/README.md.

Homebrew CLI

If you want the native CLI without the Python package, install the tap and formula with:

brew tap mapequation/infomap
brew install infomap

Or install directly in one command:

brew install mapequation/infomap/infomap

Upgrade the CLI with the normal Homebrew flow:

brew upgrade infomap

JavaScript package

The browser worker package is published on NPM:

npm install @mapequation/infomap

Docker

Multi-arch images are published to GHCR for linux/amd64 and linux/arm64:

  • ghcr.io/mapequation/infomap:latest

  • ghcr.io/mapequation/infomap:X.Y.Z

  • ghcr.io/mapequation/infomap:notebook

  • ghcr.io/mapequation/infomap:notebook-X.Y.Z

Run the CLI image with:

docker run -it --rm \
    -v "$(pwd)":/data \
    ghcr.io/mapequation/infomap:latest \
    [infomap arguments]

Start the notebook image with:

docker run \
    -v "$(pwd)":/home/jovyan/work \
    -p 8888:8888 \
    ghcr.io/mapequation/infomap:notebook \
    start.sh jupyter lab

The Dockerfiles in this repository are also smoke-tested in CI and can be built locally:

docker build -f docker/infomap.Dockerfile -t infomap:local .
docker build -f docker/notebook.Dockerfile -t infomap:notebook-local .

Or use the local Compose file:

docker compose run --rm infomap

Build from source

Building locally requires a working gcc or clang toolchain.

git clone git@github.com:mapequation/infomap.git
cd infomap
make build-native

On macOS, the default OpenMP-enabled build may require Homebrew libomp. If OpenMP is unavailable, use:

make build-native OPENMP=0

This creates the Infomap binary in the repository root. Show the available CLI options with:

./Infomap --help

See BUILD.md for platform-specific maintainer build details.

Maintainers should use:

  • BUILD.md for local build and verification commands

  • RELEASING.md for the release flow

  • ARCHITECTURE.md for ownership and source-of-truth rules

  • AGENTS.md for repo-local maintenance guidance

  • CONTRIBUTING.md for pull request and contributor guidance

  • SECURITY.md for vulnerability reporting

Feedback

Usage questions and setup help belong in GitHub Discussions. Bug reports and feature requests belong in GitHub issues.

Authors

Daniel Edler, Anton Holmgren, Martin Rosvall

For contact information, see mapequation.org/about.html.

Terms of use

Infomap is released under a dual licence.

The code is available under the GNU General Public License version 3 or any later version; see LICENSE_GPLv3.txt. For a non-copyleft license, please contact us.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

infomap-2.10.1.tar.gz (281.8 kB view details)

Uploaded Source

Built Distributions

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

infomap-2.10.1-cp314-cp314-win_amd64.whl (608.2 kB view details)

Uploaded CPython 3.14Windows x86-64

infomap-2.10.1-cp314-cp314-win32.whl (488.4 kB view details)

Uploaded CPython 3.14Windows x86

infomap-2.10.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

infomap-2.10.1-cp314-cp314-macosx_15_0_arm64.whl (886.3 kB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

infomap-2.10.1-cp313-cp313-win_amd64.whl (596.8 kB view details)

Uploaded CPython 3.13Windows x86-64

infomap-2.10.1-cp313-cp313-win32.whl (480.0 kB view details)

Uploaded CPython 3.13Windows x86

infomap-2.10.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

infomap-2.10.1-cp313-cp313-macosx_15_0_arm64.whl (886.3 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

infomap-2.10.1-cp312-cp312-win_amd64.whl (596.9 kB view details)

Uploaded CPython 3.12Windows x86-64

infomap-2.10.1-cp312-cp312-win32.whl (480.3 kB view details)

Uploaded CPython 3.12Windows x86

infomap-2.10.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

infomap-2.10.1-cp312-cp312-macosx_15_0_arm64.whl (886.4 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

infomap-2.10.1-cp311-cp311-win_amd64.whl (595.4 kB view details)

Uploaded CPython 3.11Windows x86-64

infomap-2.10.1-cp311-cp311-win32.whl (478.9 kB view details)

Uploaded CPython 3.11Windows x86

infomap-2.10.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

infomap-2.10.1-cp311-cp311-macosx_15_0_arm64.whl (885.8 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

File details

Details for the file infomap-2.10.1.tar.gz.

File metadata

  • Download URL: infomap-2.10.1.tar.gz
  • Upload date:
  • Size: 281.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for infomap-2.10.1.tar.gz
Algorithm Hash digest
SHA256 35c553afef376315e6466baf5f78f626942e312c9042f583749b606bd74c7ac9
MD5 a3db69b5b82572119631df26158253d1
BLAKE2b-256 4dbe424d56b64ba7c58498600ae1607bf1c6ffb8448fee7bb579f1d2a55a16ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1.tar.gz:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: infomap-2.10.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 608.2 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for infomap-2.10.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c0c9ec3eaab56e899fcae69b76ee0ca244dc4832e376b78762ee430c1d62dd02
MD5 5e3d0c62d4c0efb912981b731485c813
BLAKE2b-256 91f1217bd9ee089dbdbbdd3c79d5c31764a6adc8717dc1cc39449863c8e2d742

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp314-cp314-win_amd64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp314-cp314-win32.whl.

File metadata

  • Download URL: infomap-2.10.1-cp314-cp314-win32.whl
  • Upload date:
  • Size: 488.4 kB
  • Tags: CPython 3.14, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for infomap-2.10.1-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 0b2e5d90066159a9bd30f1ea9a7f187746b25541d2f5661063a8b20388038443
MD5 0482d788375d4e70a46c509a60c0271b
BLAKE2b-256 2309b787626c138255516b14625ecf14e2337b0b3bef56a05b2c1d736cae613c

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp314-cp314-win32.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for infomap-2.10.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d7e9aa71b5318669812787c609a1ee11114475557b06543bc17e59742c661c7f
MD5 2c0ce9f1e81227748ac364594747a88e
BLAKE2b-256 e5bcb4a494bcd61691337991a92c9c919acaff11aaf7f3d263c087486102703a

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for infomap-2.10.1-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 efdd6d8541cd4d2217eae3daa1ef91bcfc11116ea4fd5f5f1240ebd6781f5028
MD5 c2f6b6e445508e865191e2dda3b1dbd8
BLAKE2b-256 2f0967345828245fc760c6a9a8561c3ccfb2a2582a22fd05244b800e71027be2

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp314-cp314-macosx_15_0_arm64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: infomap-2.10.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 596.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for infomap-2.10.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 70461d47fe55e903fd7d3ce45adec1f8bab8cdc4eec4b11ad651e333dc63c28b
MD5 ff44c5a7a566902525cfb9c121326190
BLAKE2b-256 3053cba45c6d70864c86b158a3f62cafe7936b504928d5a1052e7946fee03903

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp313-cp313-win_amd64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp313-cp313-win32.whl.

File metadata

  • Download URL: infomap-2.10.1-cp313-cp313-win32.whl
  • Upload date:
  • Size: 480.0 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for infomap-2.10.1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 55832391115b52b4dc0e29a3521a1dd1dcf49a7f1da3e840ed0db97ce5c15f92
MD5 92f968fd56b9187f8601639e9869b4af
BLAKE2b-256 0e2c51e156991770ec0da9964e74fafe5f7f19bc670ed471e1bb43d42e0720b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp313-cp313-win32.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for infomap-2.10.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 20f41756492953bc234480b15b821b16aa9fc896304d48ae4f9bf294814cc53f
MD5 52da7d347ef61d74475c9fa1627880bc
BLAKE2b-256 5ed8a207fc86a403dbf7c6ae3de9680cad1cb2b454070067bdea4972ed1f4f5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for infomap-2.10.1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e5500d2d4f84ee9e46362bb27867775cc19205bc8ea58c0d36df33d0e9a18798
MD5 efcaf42275ffdece7141cc4e9e1b8152
BLAKE2b-256 026965bd8d9d1a82282b91ab216c58f6767036cbaa87e7d5b61f7f89f5ae5a14

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp313-cp313-macosx_15_0_arm64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: infomap-2.10.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 596.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for infomap-2.10.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9b5318fd8e3adcc35e76e77893607410f2e719de264f7a25e5e214af4a15058e
MD5 3426fd56ae04842f3851502050c1b652
BLAKE2b-256 2b23751edcc2da916c70f07ee73c46634ab9165bfdf2ef26af6ead99ed9b1322

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp312-cp312-win_amd64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp312-cp312-win32.whl.

File metadata

  • Download URL: infomap-2.10.1-cp312-cp312-win32.whl
  • Upload date:
  • Size: 480.3 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for infomap-2.10.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 abc804a614a613ab1d9a5f415402034b149fbbd64004613191b336ab2ad8c7dc
MD5 79fdc7e608d6ee4ee3d13632f16f3d4d
BLAKE2b-256 d0ad9766e250b2f4af8aa702ac12aad9a3b3d5ff14f99bbb210b3d8040652a3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp312-cp312-win32.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for infomap-2.10.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d34f26b29b72619e134668496a2fd816c3b96316ac9a4867845c0f57e0800268
MD5 a0d99cce031283b139416355420112fa
BLAKE2b-256 00f4d8f0be46384ae87b9f2c10ababbba8c8ff6cc5dd747e85795d85aec8d9d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for infomap-2.10.1-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3ed6fd0d2e8929cb89236a7fd77a0a1aefa0c30c4a8ae61eb57d03454e8ab2fa
MD5 f9978a4d4058b9a30c74b622ef120217
BLAKE2b-256 4d864787c2ee55d1c86fda1a043dbc4379771ae5fecc7da11574b9bd4ae6586e

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp312-cp312-macosx_15_0_arm64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: infomap-2.10.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 595.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for infomap-2.10.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4c57006bd2040624d2517640584e0ded62a0ec3cc72df5e7b6bc7eef3951b2f6
MD5 96986d25b2846b947dfdc35de5ef49fd
BLAKE2b-256 ac7568161dc72b71304338035c91cdf1c4b9ea9dba0dab34c5a6807647b3fbcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp311-cp311-win_amd64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp311-cp311-win32.whl.

File metadata

  • Download URL: infomap-2.10.1-cp311-cp311-win32.whl
  • Upload date:
  • Size: 478.9 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for infomap-2.10.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 83131bb89eae715bd507098f4870d7ade8e25cf878d72f70b53066649f31cde1
MD5 b14690754b09aae74ef2ad8a154b3099
BLAKE2b-256 6086a9c0851166419d727ae36da13c8be9eb16a88d552f1b8f91a71307da2bba

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp311-cp311-win32.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for infomap-2.10.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 38a24d81d8c7333968ef236328699efcf7ae8680bf46788f929c6e8dda62cd9e
MD5 fd2a927c657e19b8994ac32dc5296536
BLAKE2b-256 5760632d0c4e7cb3ef01ea90a5fd2952cec2923dfe689be6cb1732e0782aefe1

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infomap-2.10.1-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for infomap-2.10.1-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3ea5fcad111f1331e35f29826b79ebda5c8de0fdd7599b437c528cfa571a0179
MD5 55bef3a685a678ee3923a4629685eb9a
BLAKE2b-256 5e2878b0cd4c47ad9a120bb3355fbe1ab5ab11362a7a996de955e16e6dd07f70

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.1-cp311-cp311-macosx_15_0_arm64.whl:

Publisher: release.yml on mapequation/infomap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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