convert_to_intra_format | R Documentation |
This function converts a multilayer network, represented as a list of igraph objects, into a standardized format suitable for Infomap and other multilayer network analyses.
convert_to_intra_format(igraph_list, use_names = FALSE)
igraph_list |
A list of |
use_names |
Logical; if |
Each node is assigned a unique numeric ID, and edges across layers are recorded with layer-specific identifiers.
A list with two data frames:
vertices |
A data frame containing node_id and corresponding node names. |
intra |
A data frame containing intra-layer edges with columns: |
## Not run:
multi_format <- convert_to_intra_format(list(layer1, layer2))
print(multi_format$vertices)
print(multi_format$intra)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.