Description Usage Arguments Value Methods (by class) See Also
The generic method definition for getting parent node id.
1 2 3 4 5 6 7 | get_parent_id(x, node_num)
## S4 method for signature 'TreeHarp'
get_parent_id(x, node_num)
## S4 method for signature 'list'
get_parent_id(x, node_num)
|
x |
An object of class TreeHarp or an adjacency list. |
node_num |
An integer, length 1. This the node whose parent we are after. If node_num is equal to 1, then NULL is returned because that should be the root node. |
An integer, indicating the parent node.
TreeHarp
: Obtain parent node id.
Extracts parent id of a node from a TreeHarp object.
list
: Obtain parent node id.
Extracts parent id of a node from an adjacency list object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.