mat.to.edgl: Matrix to edge list

Description Usage Arguments Details Value Author(s)

View source: R/Functions.R

Description

Converts a square adjacency matrix into a data frame with three columns representing an edge list. Columns are: actor, receiver and weight.

Usage

1
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


NetExplorer documentation built on Dec. 11, 2021, 5:08 p.m.