powered by
This function returns a subgraph with only the supplied nodes and any edges between them.
do.subgraph(nd, g, edgemode = "directed")
a vector with the nodes for which the subgraph must be built.
a graph of class graphNEL. It represents the hierarchy of the classes.
graphNEL
can be "directed" or "undirected".
a subgraph with only the supplied nodes.
# NOT RUN { data(graph); anc <- build.ancestors(g); nd <- anc[["HP:0001371"]]; subg <- do.subgraph(nd, g, edgemode="directed"); # }
Run the code above in your browser using DataLab