is_ancestor
Description:
public bool is_ancestor (
Node<
G> descendant)
Returns true if this is an ancestor of descendant
.
This is true if node is the parent of descendant, or if node is the grandparent of descendant etc.
Parameters:
| this |
a Node
|
| descendant |
a Node
|
Returns:
|
true if this is an ancestor of descendant
|