Try itInstallFormatsHow it worksHow to citev2.10.1 GitHub

Documentation

Install Infomap

For most users, the Python package is the best starting point: it installs both the Python API and the infomap command-line tool. If you only need a native CLI, use Homebrew or a standalone binary.

Python 3.11+CLI includedmacOS / Linux / Windows
Most users start here

Python package

Python 3.11+macOSLinuxWindows

Use this if you want the Python API or the easiest way to install the infomap command-line tool.

pip install infomap

Upgrade an existing installation

pip install --upgrade infomap

Verify the installation

infomap -v
PyPI Python API reference

Native CLI with Homebrew

macOSLinuxCLI

Use Homebrew if you want the native command-line tool without installing the Python package.

brew install mapequation/infomap/infomap

Tap and install separately

brew tap mapequation/infomap
brew install infomap

Upgrade with the normal Homebrew flow

brew upgrade infomap

Standalone binaries

macOSLinuxWindowsOpenMP

Use a standalone binary when you want to download an executable directly. OpenMP builds may be faster on larger networks but require OpenMP runtime libraries.

OpenMPWithout OpenMP
Windowsinfomap-win.zipinfomap-win-noomp.zip
macOSinfomap-mac.zipinfomap-mac-noomp.zip
Ubuntuinfomap-ubuntu.zipinfomap-ubuntu-noomp.zip

R package

Rr-universe

Pre-built R binaries are published on r-universe.

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

TypeScript package

TypeScriptNPM

Use the WebAssembly worker package to embed Infomap in browser and TypeScript applications.

npm install @mapequation/infomap

Docker

Dockeramd64arm64

Use the GitHub Container Registry image for reproducible CLI runs in CI or shared compute environments.

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

Build from source

gccclang

Build locally when you want to modify Infomap or compile with custom flags. Requires a working gcc or clang toolchain.

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

Build without OpenMP

make build-native OPENMP=0

Show available CLI options

./Infomap --help

Run Infomap

After installation, the command-line form is:

infomap [options] network_data destination

For example:

infomap network.net out
infomap --two-level --directed network.net out

List all available options with:

infomap --help

Read next

Input and output formats