Multilevel community detection with Infomap
Infomap Online
from infomap import Infomap
im = Infomap()
im.read_file("ninetriangles.net")
im.add_link(1, 10)
im.run("--two-level --num-trials 5")
print(im.codelength)
for node in im.tree:
if node.is_leaf:
print(node.node_id, node.module_id) Python API
library(infomap)
edges <- data.frame(
source = c(1, 1, 2, 3, 4, 4, 5),
target = c(2, 3, 3, 4, 5, 6, 6)
)
result <- cluster_infomap(edges, num_trials = 10)
result$codelength
result$num_top_modules
result$modules
result$nodes R Package
Applications based on the map equation
Source code for analyzing solutions
Earlier interactive apps and their documentation
These older apps are not actively maintained and may not run well in modern browsers, but the accompanying documentation describes the underlying ideas and remains a useful reference.