mat.to.edgl {NetExplorer} | R Documentation |
Converts a square adjacency matrix into a data frame with three columns representing an edge list. Columns are: actor, receiver and weight.
mat.to.edgl(M, sym = FALSE, erase.diag = TRUE)
M |
a square adjacency matrix. |
sym |
if TRUE, it extracts the lower triangle of the matrix only. |
erase.diag |
if TRUE, it omits diagonals. |
This function convert a matrix into an edgelist.
a data frame representing an edge list.
Sebastian Sosa