powered by
subGraph(snodes, graph)
character
graph
graphNEL
distGraph
clusterGraph
nodes
edges
set.seed(123) x <- rnorm(26) names(x) <- letters library(stats) d1 <- dist(x) g1 <- new("distGraph", Dist=d1) subGraph(letters[1:5], g1)
Run the code above in your browser using DataLab