Convert a List of igraph Objects to Intralayer Edge Format
Source:R/modularity.R
convert_to_intra_format.RdThis function converts a multilayer network, represented as a list of igraph objects, into a standardized format suitable for Infomap and other multilayer network analyses.
Value
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:
layer_id,node_id1,node_id2,weight.