vec2m: Convert graph list to adjacency matrix

Description Usage Arguments Value

View source: R/funs_conversations.R

Description

Takes a list which contains a vector of values being the vectorized version of an adjacency matrix, the orginal number of columns, rows and the names of the columns. Then, this function convertes the vector to the original adjacency matrix.

Usage

1
vec2m(xL)

Arguments

xL

list containing vectorized adjacency matrix, its original number of columns, its original number of columns and node names

Value

Return adjacency matrix of the original network as matrix


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