| dfs | R Documentation |
Finds the elements in the component of root
dfs(adj, root)
adj |
A named adjacency list of a decomposable grah |
root |
The node from which the component should be found |
All nodes connected to root
x <- list(a = c("b", "d"), b = c("a", "d"), c = c("b", "a"),
d = c("e", "f"), e = c("d", "f"), f = c("d", "e"))
dfs(x, "a")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.