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