Description Usage Arguments Value
Recursively finds all ancestor nodes in DAG for node with the given index.
1 | ancestor.find(index, map, n.nodes)
|
index |
Index of the node currently at. |
map |
Matrix of |
n.nodes |
Number of nodes in DAG. |
Returns a length-n.nodes
vector of binary values for which
1 indicates the corresponding node is an ancestor node and 0 indicates it is not.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.