Description Usage Arguments Value Examples
View source: R/misc-utilities.R
Find all the leaves and root vertices in a directed graph. A root node has no parents
1 2 3 | get_roots(g)
get_leaves(g)
|
g |
an igraph directed graph |
chacter vector of vertex names
1 2 | g <- ba.game(10)
get_roots(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.