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.0.tar.gz (281.5 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.0-cp314-cp314-win_amd64.whl (607.4 kB view details)

Uploaded CPython 3.14Windows x86-64

infomap-2.10.0-cp314-cp314-win32.whl (487.5 kB view details)

Uploaded CPython 3.14Windows x86

infomap-2.10.0-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.0-cp314-cp314-macosx_15_0_arm64.whl (886.0 kB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

infomap-2.10.0-cp313-cp313-win_amd64.whl (595.7 kB view details)

Uploaded CPython 3.13Windows x86-64

infomap-2.10.0-cp313-cp313-win32.whl (479.2 kB view details)

Uploaded CPython 3.13Windows x86

infomap-2.10.0-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.0-cp313-cp313-macosx_15_0_arm64.whl (885.9 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

infomap-2.10.0-cp312-cp312-win_amd64.whl (595.9 kB view details)

Uploaded CPython 3.12Windows x86-64

infomap-2.10.0-cp312-cp312-win32.whl (479.6 kB view details)

Uploaded CPython 3.12Windows x86

infomap-2.10.0-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.0-cp312-cp312-macosx_15_0_arm64.whl (886.1 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

infomap-2.10.0-cp311-cp311-win_amd64.whl (594.6 kB view details)

Uploaded CPython 3.11Windows x86-64

infomap-2.10.0-cp311-cp311-win32.whl (478.4 kB view details)

Uploaded CPython 3.11Windows x86

infomap-2.10.0-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.0-cp311-cp311-macosx_15_0_arm64.whl (885.3 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: infomap-2.10.0.tar.gz
  • Upload date:
  • Size: 281.5 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.0.tar.gz
Algorithm Hash digest
SHA256 f25b3052d3a6e43726388006ae304b78607752045abc947a4c69d8f2dfb24cea
MD5 30502dd6379d00e1f50ee920a4ffbc10
BLAKE2b-256 ca50380df7daa388bd3dc526d76fe3b733d8477d5448e2878a07a02769bdacac

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0.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.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: infomap-2.10.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 607.4 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.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a2569e57f0de29b5990134bfe085e507fe79b325005126894006dbd1e660bdf7
MD5 249d1bf6ac9ccb05f35f4ec886a96753
BLAKE2b-256 ea39807f78c82d8792e829a95b15ff00655a8188352456e4a2e756ed22f0c06f

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp314-cp314-win32.whl.

File metadata

  • Download URL: infomap-2.10.0-cp314-cp314-win32.whl
  • Upload date:
  • Size: 487.5 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.0-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 a86531452290d3364c85140a66466f02d3ff7bc21c9f81c77c89320e1ddb0238
MD5 00e76001b165f1809205610e1dcff93d
BLAKE2b-256 378b064f075c8945e7466515558bfaa93122993463d3d701063376c81b0fad7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for infomap-2.10.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b9a873ab6cc7b3994b7ac764a659fcd03207b401a96be9599541e9259db14ee6
MD5 37beb21ef3dd9b9e793216e56695f818
BLAKE2b-256 ee1c9dd26d9b0f6dcc5e4eb79691c5128580e358c88a2cacf19e63d543b4a11f

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for infomap-2.10.0-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4c4005bb2fac3e4b34a16452c96ce3e4a8eaab6b5aebca872f71c5598e8cfa06
MD5 3505bdbe430834aa2d0e6bf21f16e1a7
BLAKE2b-256 f6fa39d25f118ac96b95ad307b4c774d1e6ac0e12c718b17fee7f7470f85a22a

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: infomap-2.10.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 595.7 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.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 589237dd8b1cd9675fd07a0d21c4bd008effdd9c30d62fb8fa94e03e1e011669
MD5 ba235371443137cf645bd3b18c464207
BLAKE2b-256 200fb0f285c8652c6747e95a86b5e1d6df75f89aee07a7098063dfd4cd103276

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp313-cp313-win32.whl.

File metadata

  • Download URL: infomap-2.10.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 479.2 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.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 c0d98b1071d984cdacada1e6d185207daa5a1f125eb9ca97feb69c5b75b5ea24
MD5 73a839e9c25523601015922c8f0940be
BLAKE2b-256 45aa129f2ec22075580dc0ffd1b47acce7b8d2c4c4ff1b0d16d793bb427c9dfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for infomap-2.10.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 493c76dd5258596a64fb7938af43138e472e00d3802ed1fd89c3d771fda1d444
MD5 dda65fd8a613f93dd4ef92485276657c
BLAKE2b-256 fc9a985aa7439868a36a5ba8426cfce285524be6a0a90b56e1a2ee44450416c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for infomap-2.10.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9f47ec8e989bbb07aea313cdbbbacd39c0c84155b7075a6920f89d8ab4434468
MD5 772c6c618092c28ee6d898b2de82dadb
BLAKE2b-256 b49358b838800fd36832be1f41f5cfb5bb0583d8931d9d69699bec41f3039ff3

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: infomap-2.10.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 595.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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d2a80e64af1d599e4aa4017384a1d7ba1804ecf4c26fc9b46614da57b6d25ef0
MD5 abb82db41072e708cff5b95661aaa1b5
BLAKE2b-256 be901d684ce28c912d1b69ba6890658388b628431a5f781922d224b2f18e582a

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp312-cp312-win32.whl.

File metadata

  • Download URL: infomap-2.10.0-cp312-cp312-win32.whl
  • Upload date:
  • Size: 479.6 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.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 94ed7146d7889d1cf3b4e5fe2c0469e266c5c352789d8e8152d90274e1880e1a
MD5 914bfc683fa0c92304ecba858f758869
BLAKE2b-256 06e204d6a2faed6206267cd625efb6a2eb5dfeda4742674e8339695a008ec1e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for infomap-2.10.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b2717c19eb64d17e6639d6e16659082cba5f041970d5e670d6e47a019dca6628
MD5 e391b4a0bcbedb983f869caf2ca30bcc
BLAKE2b-256 0925cc7cd623b1f9fa9a4162b720a0c7095d678345dfa2e004a4e6aefda7191b

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for infomap-2.10.0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d04616a003bb357837fc22be70e9b3816b3d2ef1cb0889913c6ab1122c99535f
MD5 44c2c3426386682097d5e6b332b63d81
BLAKE2b-256 c700bf32da029b8ae64d9c97e27aa8c65aa9132f6f7765f051e3dccc98ba33b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: infomap-2.10.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 594.6 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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 64073bd657c039c4e370bf9891bac1c7e625d1cf3db473c0f8f11dcfb28cdf88
MD5 c73556cc84fb2bfbde09ffb6a76bacad
BLAKE2b-256 636d439c90f334059e666d509284c12f05fddd47a18813ddf63ffbbd6ea03e4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp311-cp311-win32.whl.

File metadata

  • Download URL: infomap-2.10.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 478.4 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.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f207be1709a2092bd88e13aeda1e33000c76daed2e68046a2259b0aa3213d6a8
MD5 b1a4e09e68eb10ff1d22b5329c4fcce1
BLAKE2b-256 e76c8358df8e5b3fbd38e0a132a19a3f07d6656a713c30cf4276e1a3a8bd1d67

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for infomap-2.10.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 acd10a418523a428c29f317209f3434a34559a5d41c53d90b8b6969ab532b8d9
MD5 5afe5ffe78136d4754b88a64b706951d
BLAKE2b-256 4b2dbff9b4ab701ac9d3bc63af2d6c1b45055c7157c95678fa13a1283e7754ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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.0-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for infomap-2.10.0-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a7a17b7a7ba46e5c1117bfcf1a15ecc21e2c7067d509b7c60378cd7f078f854f
MD5 6b95c5cc95bd623fc30d6c490be36ac3
BLAKE2b-256 f4635e090a8fb36cd8b143d95c5deadb3751df0c7c51613bdb5f26815d2a440b

See more details on using hashes here.

Provenance

The following attestation bundles were made for infomap-2.10.0-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