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 make_reduced in the reduced_mat list)

Value

A directed and unweighted igraph object for the reduced matrix.

See Also

make_reduced

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]