mat.to.edgl | R Documentation |
Converts a square adjacency matrix into a data frame of 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. |
Sebastian Sosa, Ivan Puga-Gonzalez.
Sosa, S. (2018). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.
mat.to.edgl(sim.m, sym = FALSE, erase.diag = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.