Commands
 source("https://bioconductor.org/biocLite.R")
 biocLite("graph")
 library(graph)
random graph
 set.seed(123)
 g1 = randomEGraph(LETTERS[1:15], edges=100)
 g1
graph properties
 nodes(g1)
 degree(g1)
 adj(g1, "A")
 acc(g1, c("E", "G"))
subgraph
sg1 = subGraph(c("A", "E", "F","L"), g1)
boundary(sg1, g1)
edgeWeights(sg1)
graph algorithms
DFS(g1,"E")
clustergraph
References
http://bioconductor.org/packages/release/bioc/vignettes/graph/inst/doc/graph.pdf http://bioconductor.org/packages/release/bioc/html/graph.html