EList_Mtrx {simplifyNet}R Documentation

Edge list to adjacency matrix

Description

Convert an edge list to an adjacency matrix.

Usage

EList_Mtrx(E_List, directed = FALSE, n)

Arguments

E_List

Edge list formatted | n1 | n2 | weight |.

directed

Specifies if the network is directed or undirected. Default is set to undirected.

n

Specify number of nodes. Default is max(E_List[,1:2]).

Value

Adjacency matrix constructed from edge list, E_List, of the class dgCMatrix.

Author(s)

Alexander Mercier


[Package simplifyNet version 0.0.1 Index]