Ecological-Complexity-Lab / infomap_ecology_package

Package with functions to handle network data and run Infomap, inspired by ecological networks
26 stars 2 forks source link

function "create_multilayer_object"?? #33

Open mar-iana opened 2 weeks ago

mar-iana commented 2 weeks ago

Could not find function "create_multilayer_object" in R, neither in this repository, what has happened with it? Thanks in advance

shainova commented 2 weeks ago

Did you install the last version? Here is the new website: https://ecological-complexity-lab.github.io/infomap_ecology_package/installation.html The infomapecology package now depends on elmn package so you need to install it too. And the function is called create_multilayer_network; see: https://ecological-complexity-lab.github.io/emln_package/multilayer.html

mar-iana commented 2 weeks ago

Hi, thank you so much for your response! I’m almost sure I have the latest version installed, as I installed it a month ago, and I’m already using the create_multilayer_network function. The reason I was looking for the create_multilayer_object function was to set the arguments intra_output_extended=F and inter_output_extended=F, as suggested in the details of the function’s help section in R, in order to run run_infomap with relax=TRUE, which allows me to move between layers.

From what I’ve been exploring, if I don’t include the interlayer object in the create_multilayer_network function (i.e., interlayer_links = NULL), it is possible to achieve this result. But if I also want to include it and make the probability of random walks between layers possible but constrained by interlayer links, is that possible? Does the function, when creating a multilayer object with interlayer links, actually do precisely this?

Thanks again, and best regards, Mariana

shainova commented 5 days ago

Can you include a minimal working example of your code? something we can copy-paste and run. @Geutg will take it from here.