Learn R Programming

cograph (version 2.0.0)

subgraphs: Extract Specific Motif Instances (Subgraphs)

Description

Convenience wrapper for motifs(x, named_nodes = TRUE, ...). Returns specific node triples forming each MAN pattern.

Usage

subgraphs(...)

Value

Same as motifs. See that function for details.

Arguments

...

Additional arguments passed to plot helpers.

See Also

motifs()

Other motifs: extract_motifs(), extract_triads(), get_edge_list(), motif_census(), motifs(), plot.cograph_motif_analysis(), plot.cograph_motifs(), triad_census()

Examples

Run this code
mat <- matrix(c(0,3,2,0, 0,0,5,1, 0,0,0,4, 2,0,0,0), 4, 4, byrow = TRUE)
rownames(mat) <- colnames(mat) <- c("Plan","Execute","Monitor","Adapt")
subgraphs(mat, significance = FALSE)

Run the code above in your browser using DataLab