makereducedigraph: Build an 'igraph' object for a reduced network

Description Usage Arguments Value See Also Examples

Description

Turns a reduced adjacency matrix (usually output from make_reduced) into an igraph object. This function requires igraph to work.

Usage

1
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

1
2
3
4
5
6
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]])

concorR documentation built on Nov. 26, 2020, 1:08 a.m.