You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h1>skbio.tree.TreeNode.accumulate_to_ancestor<aclass="headerlink" href="#skbio-tree-treenode-accumulate-to-ancestor" title="Link to this heading">#</a></h1>
<spanclass="sig-prename descclassname"><spanclass="pre">TreeNode.</span></span><spanclass="sig-name descname"><spanclass="pre">accumulate_to_ancestor</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">ancestor</span></span></em><spanclass="sig-paren">)</span><aclass="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/tree/_tree.py#L3301"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#skbio.tree.TreeNode.accumulate_to_ancestor" title="Link to this definition">#</a></dt>
751
+
<spanclass="sig-prename descclassname"><spanclass="pre">TreeNode.</span></span><spanclass="sig-name descname"><spanclass="pre">accumulate_to_ancestor</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">ancestor</span></span></em><spanclass="sig-paren">)</span><aclass="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/tree/_tree.py#L3742"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#skbio.tree.TreeNode.accumulate_to_ancestor" title="Link to this definition">#</a></dt>
748
752
<dd><p>Calculate the distance between self and an ancestor.</p>
749
753
<p>The distance is the sum of branch lengths connecting the current node and the
<spanclass="sig-prename descclassname"><spanclass="pre">TreeNode.</span></span><spanclass="sig-name descname"><spanclass="pre">ancestors</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">include_self</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">False</span></span></em><spanclass="sig-paren">)</span><aclass="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/tree/_tree.py#L470"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#skbio.tree.TreeNode.ancestors" title="Link to this definition">#</a></dt>
751
+
<spanclass="sig-prename descclassname"><spanclass="pre">TreeNode.</span></span><spanclass="sig-name descname"><spanclass="pre">ancestors</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">include_self</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">False</span></span></em><spanclass="sig-paren">)</span><aclass="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/tree/_tree.py#L445"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#skbio.tree.TreeNode.ancestors" title="Link to this definition">#</a></dt>
748
752
<dd><p>Return all ancestral nodes from self back to the root.</p>
<dt>list of TreeNode</dt><dd><p>The path, toward the root, from self.</p>
753
-
</dd>
754
756
<dt><strong>include_self</strong><spanclass="classifier">bool, optional</span></dt><dd><p>Whether to include the initial node in the path (default: False).</p>
0 commit comments