inducedGraph(dag, startNodes)
nodesInInducedGraph(dag, startNodes)
graphNEL
containing a directed
graph.graphNEL-class
is returned.
topGOdata-class
,
reverseArch
,
data(GOdata)
## the GO graph
g <- graph(GOdata)
g
## select 10 random nodes
sn <- sample(nodes(g), 10)
## the subgraph induced by these nodes
sg <- inducedGraph(g, sn)
sg
Run the code above in your browser using DataLab