mapequation / infomap

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

node weights in multilayer networks #309

Closed dmalzl closed 2 years ago

dmalzl commented 2 years ago

Hi,

I am trying to use infomap to find communities in a multilayer network of metabolites. In this regard each layer represents the pairwise correlation network of metabolites for the given timepoint and interlayer links are pairwise correlations of metabolites between successive timepoints.

Setting up the network and running the algorithm works pretty well using the multilayer Pajek file format but I also wanted to somehow reflect the metabolic state of the organism at a given timepoint by assigning weights to nodes. After reading through the documentation and digging through the code I found that this is possible when using the state Pajek file format where one can specify state_id node_id name weight in the *states section of the file. However, although this works fine I feel like this completely disregards the layers of the network and results in all state nodes being assigned to their own cluster unless I use a very high markov time.

Is there any way to use the multilayer format and assign weights to state nodes and use this for module detection or am I doing everything they way it is intended already and just don't understand the algorithm enough?

Thanks for the reply in advance and best regards, Daniel