tupelo.hierarchy
common-lineage
(common-lineage h & items)
Inputs: [h :- tsk/KeyMap & items :- [Symbol-or-Keyword]]
Returns: tsk/Set
Returns all common lineage elements for all items.
greatest-common-derivation
(greatest-common-derivation h & items)
Inputs: [h :- tsk/KeyMap & items :- [Symbol-or-Keyword]]
Returns: Symbol-or-Keyword
Returns the most derived element in the lineage of all items
lineage-to-item
(lineage-to-item h item)
Inputs: [h :- tsk/KeyMap item :- Symbol-or-Keyword]
Returns: tsk/Set
Returns a set of an items ancestors, including the item itself.
num-ancestors
(num-ancestors h item)
Inputs: [h :- tsk/KeyMap item :- Symbol-or-Keyword]
Returns: s/Num
Returns the number of ancestors for an item.