getConnectedComponentList: Given a graph, returns a list of its connected components...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/getConnectedComponentList.R

Description

Given a graph, returns a list of its connected components (which are also graph objects), ordered by decreasing number of nodes.

Usage

1

Arguments

graph

A graph object.

verbose

If TRUE, extra information is output.

Value

A list containing a graph object for each connected component of the input graph, ordered by decreasing number of nodes

Author(s)

Laurent Jacob, Pierre Neuvial and Sandrine Dudoit

See Also

connectedComp.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data("Loi2008_DEGraphVignette")
exprData <- exprLoi2008
rn <- rownames(exprData)

## Retrieve expression levels data for genes from one KEGG pathway
graph <- grListKEGG[[1]]
pname <- attr(graph, "label")
cat(verbose, "Pathway name: ", pname)

sgraph <- getSignedGraph(graph, verbose=TRUE)
print(sgraph)

graphList <- getConnectedComponentList(graph, verbose=TRUE)
print(graphList)

DEGraph documentation built on Nov. 8, 2020, 5:52 p.m.