Learn R Programming

concorR (version 0.2.0)

concor_make_igraph: Find CONCOR partition and create a list of igraph objects

Description

Run concor on a list of adjacency matrices and create a list of igraph objects with a specific CONCOR split added as a vertex attribute.

Usage

concor_make_igraph(adj_list, nsplit = 1)

Arguments

adj_list

A list of adjacency matrices, each representing a different relation for the same nodes.

nsplit

The total number of splits CONCOR will (attempt to) perform.

Value

Returns a list of igraph objects with a vertex attribute csplitn, where n is nsplit that contains the block assignment obtained from concor.

Details

This function is a wrapper for a common task: Running concor on one or more adjacency matrices, then saving the networks as igraph objects with the CONCOR partition as a vertex attribute. If multiple adjacency matrices are included in the input list, they should be multiple relations for the same nodes.

See Also

concor, concor_igraph_apply

Examples

Run this code
# NOT RUN {
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")

concor_make_igraph(list(a))
# }

Run the code above in your browser using DataLab