subgraph: Get a subgraph

Description Usage Arguments Value Author(s) See Also Examples

Description

Given a set of nodes and a graph this function creates the subgraph containing only the specified nodes.

Usage

1
subgraph(graph, subset)

Arguments

graph

A graph of class graphMCP.

subset

A logical or character vector specifying the nodes in the subgraph.

Value

A subgraph containing only the specified nodes.

Author(s)

Kornelius Rohmeyer rohmeyer@small-projects.de

See Also

graphMCP

Examples

1
2
3
graph <- improvedParallelGatekeeping()
subgraph(graph, c(TRUE, FALSE, TRUE, FALSE))
subgraph(graph, c("H1", "H3"))

gMCP documentation built on May 2, 2019, 6:07 p.m.