make_reduced_igraph {concorR} | R Documentation |
Build an igraph
object for a reduced network
Description
Turns a reduced adjacency matrix (usually output from make_reduced
) into an
igraph
object. This function requires igraph to work.
Usage
make_reduced_igraph(reduced_mat)
Arguments
reduced_mat |
A reduced network adjacency matrix (typically outputted from
|
Value
A directed and unweighted igraph
object for the reduced matrix.
See Also
Examples
a <- matrix(c(0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0), ncol = 4)
rownames(a) <- c("a", "b", "c", "d")
colnames(a) <- c("a", "b", "c", "d")
r_mat <- make_reduced(list(a), nsplit = 1)
make_reduced_igraph(r_mat$reduced_mat[[1]])
[Package concorR version 0.2.1 Index]