adj2edg: Converts adjacency matrix to edge list

Description Usage Arguments Value

View source: R/funs_conversations.R

Description

Converts a graph represented as adjacency matrix to edge list

Usage

1
adj2edg(mat, symmetric = TRUE, diagonal = FALSE, text = FALSE)

Arguments

mat

adjacency matrix of a graph

symmetric

default:TRUE, the adjacency matrix is symmetric

diagonal

default:FALSE, do not keep the diagonal values in the edge list

text

default:FALSE, do not set the column of the edge list as character vector

Value

Return edge list of the original network as matrix


LucaGiudice/Simpati documentation built on Jan. 27, 2022, 11:42 p.m.