Understanding multilayer output #267
-
hello Infomap devs, I hope this is gonna be a quick question. I'm using Infomap with a multilayer network, and I just noticed that in the output, every node always ends up in its own module, beside being assigned to a big cluster. It looks like this in the ftree file:
I tested it by making a network of a single layer, which is a graph consists only of complete subgraphs that are totally isolated from each other. there are about 30 such subgraphs, I thought I'd see 30 modules, but infomap partition it into > 2000 top modules. I looked into it and see every node in their own module again. Is that normal? If so, why does it work that way and what's good about it?
thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, You are watching the physically aggregated tree output, where one physical node can exist in multiple modules. This is because each physical node may exist as multiple state nodes, one for each layer, and the state nodes may be part of different modules. If you check the state tree output, node 125 will be differentiated by different layer ids in the two different modules. Do you add inter-layer links or only intra-layer links? If the latter, you can use Just to avoid possible sources of error, can you skip the calls to If you still get unexpected result, can you share more of your code and data? |
Beta Was this translation helpful? Give feedback.
Hi,
You are watching the physically aggregated tree output, where one physical node can exist in multiple modules. This is because each physical node may exist as multiple state nodes, one for each layer, and the state nodes may be part of different modules. If you check the state tree output, node 125 will be differentiated by different layer ids in the two different modules.
Do you add inter-layer links or only intra-layer links? If the latter, you can use
add_multilayer_intra_link
instead and let Infomap generate the links between layers, based on themultilayer_relax_rate
.Just to avoid possible sources of error, can you skip the calls to
add_node()
and see if you get the same result?…