Convert a network in weighted adjacency matrix, edge list, or igraph to a weighted adjacency matrix, edge list, or igraph format.
net.as(network, net.to = "E_List", directed = FALSE)
A network of the format specified by net.to
.
Weighted adjacency matrix, weighted igraph
network, or edge list formatted | n1 | n2 | weight | with colnames c("n1", "n2", "weight")
.
Specifics to what format the imputed network is to be converted:
(1) 'E_List' convert to an edge list of the format | n1 | n2 | weight | with colnames c("n1", "n2", "weight")
.
(2) 'Adj' convert to a weighted adjacency matrix.
(3) 'igraph' convert to a weighted igraph object.
If TRUE
, specifies that the inputted network is directed. Default is FALSE
.
Alexander Mercier