write_multilayer_network | R Documentation |
This function writes a multilayer network (represented as a list of igraph objects) to a text file in Infomap's required *Intra format.
write_multilayer_network(igraph_list, file_path)
igraph_list |
A list of |
file_path |
A string specifying the path to the output file. |
The output file consists of:
A list of unique vertices with their numeric IDs.
Intra-layer edges with weights.
A list with two data frames:
vertices |
A data frame of node IDs and names. |
intra |
A data frame of intra-layer edges with columns: |
## Not run:
write_multilayer_network(list(layer1, layer2), "network.net")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.