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.
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']