`subGraph(snodes, graph)`

snodes

A

`character`

vector of node labels. graph

A graph object, it must inherit from the

`graph`

class. -
A graph of the same class as the

`graph`

argument but with only
the supplied nodes.
`graphNEL`

, `distGraph`

and
`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)