DEGraph (version 1.24.0)

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

Description

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

Usage

getConnectedComponentList(graph, verbose=FALSE)

Arguments

graph
A graph object.
verbose
If TRUE, extra information is output.

Value

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

See Also

connectedComp.

Examples

Run this code
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)

Run the code above in your browser using DataLab