el2adj: Maps edgelist to adjacency matrix

Description Usage Arguments Value

View source: R/matrixoperations.R

Description

Maps edgelist to adjacency matrix

Usage

1
el2adj(el, nodes = NULL)

Arguments

el

dataframe containing a (weighted) edgelist. Column 1 is the sender, column 2 is the receiver, column 3 the number of edges.

nodes

optional vector containing all node names in case disconnected nodes should be included.

Value

the (weighted) adjacency matrix corresponding the edgelist passed


ghypernet documentation built on Oct. 15, 2021, 5:14 p.m.