getLargestSubgraph: A function to extract the largest subgraph from a graphNEL...

Description Usage Arguments Value Note Author(s) References Examples

View source: R/getSubgraphs.R

Description

In QuACN most methods depend on the analyzed graph to be connected. This function extracts the largest connected component from a graphNEL object.

Usage

1

Arguments

g

A graphNEL object of which the largest connected component has to be extracted.

Value

The largest connected graphNEL object from g

Note

Code taken from Hahne et al. "Bioconductor Case Studies"

Author(s)

Karl Kugler

References

Florian Hahne, Wolfgang Huber, Robert Gentleman, Seth Falcon "Bioconductor Case Studies", Springer, 2008

Examples

1
2
3
4
set.seed(667)
g <- randomGraph(paste("A",1:100, sep=""), 1:4, p=0.03, weights=FALSE)
lcc <- getLargestSubgraph(g)
lcc

QuACN documentation built on May 2, 2019, 5:46 p.m.