View source: R/graph.utility.R
build.consistent.graph | R Documentation |
Build a graph in which all nodes are reachable from root.
build.consistent.graph(g = g, root = "00")
g |
an object of class |
root |
name of the class that is on the top-level of the hierarchy ( |
All nodes not accessible from root (if any) are removed from the graph and printed on stdout.
A graph (as an object of class graphNEL
) in which all nodes are accessible from root.
data(graph);
root <- root.node(g);
G <- graph::addNode(c("X","Y","Z"), g);
G <- graph::addEdge(c("X","Y","Z"), c("HP:0011844","HP:0009810","HP:0012385"), G);
G <- build.consistent.graph(G, root=root);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.