Description Usage Arguments Value Examples
View source: R/graph.utility.R
This function returns a subgraph with only the supplied nodes and any edges between them.
1 | do.subgraph(nd, g, edgemode = "directed")
|
nd |
a vector with the nodes for which the subgraph must be built. |
g |
a graph of class |
edgemode |
can be "directed" or "undirected". |
a subgraph with only the supplied nodes.
1 2 3 4 | data(graph);
anc <- build.ancestors(g);
nd <- anc[["HP:0001371"]];
subg <- do.subgraph(nd, g, edgemode="directed");
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.