mapequation / infomap

Multi-level network clustering based on the Map Equation
https://mapequation.org/infomap
GNU General Public License v3.0
433 stars 87 forks source link

add_node/set_name confusing when using higher-order networks #287

Closed antoneri closed 2 years ago

antoneri commented 2 years ago
from infomap import Infomap
im.add_node(1, "A")
im.add_node(2, "B")
im.add_node(3, "C")
im.add_multilayer_intra_link(1, 1, 2)
im.add_multilayer_intra_link(1, 2, 1)
im.add_multilayer_intra_link(2, 1, 1)
im.add_multilayer_intra_link(2, 1, 3)
im.run()

No links added! Works as intended when using set_name instead. This should be mentioned in the documentation.