igraph package.Converts an adjacency matrix to edgelist and edgeweight using the
igraph package.
adj_to_edgelist(adj, directed = TRUE, weighted = TRUE)A list of edgelist, edgeweight and directed.
Adjacency matrix of a network.
Logical, whether the network is directed. This value is
passed to igraph::graph_from_adjacency_matrix().
Logical, whether the network is weighted.