Description Usage Arguments Value Author(s) See Also Examples
View source: R/getConnectedComponentList.R
Given a graph, returns a list of its connected components (which are also graph objects), ordered by decreasing number of nodes.
1 | getConnectedComponentList(graph, verbose=FALSE)
|
graph |
A |
verbose |
If |
A list
containing a graph
object for each connected
component of the input graph, ordered by decreasing number of nodes
Laurent Jacob, Pierre Neuvial and Sandrine Dudoit
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.