EList_Mtrx: Edge list to adjacency matrix
Description
Convert an edge list to an adjacency matrix.
Usage
EList_Mtrx(E_List, directed = FALSE, n)
Value
Adjacency matrix constructed from edge list, E_List
, of the class dgCMatrix.
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])
.