skbio.tree.TreeNode.siblings¶
-
TreeNode.
siblings
()[source]¶ Returns all nodes that are children of self parent.
State: Experimental as of 0.4.0.
This call excludes self from the list.
- Returns
The list of sibling nodes relative to self
- Return type
list of TreeNode
See also
Examples
>>> from skbio import TreeNode >>> tree = TreeNode.read(["((a,b)c,(d,e,f)g)root;"]) >>> tip_e = tree.find('e') >>> [n.name for n in tip_e.siblings()] ['d', 'f']