<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi,</div>

<div>&nbsp;</div>

<div>I am trying to do a tree traversal with the phylo package (just loop over every node). I have read the tree into a Newick tree object. Now the class docu of TreeMixin shows me the available methods: _filter_search seems to be what I need because it says that it&#39;s for tree traversals. However I don&#39;t want to apply a filter because I want to loop over every node in the tree. That will probably be easy to realize after having understood how _filter_search works (something like filter = 1 = true for all = loop over all nodes). But there is no documentation for this function and I don&#39;t understand how it works by just reading what its arguments are:</div>

<div><span class="summary-sig"><span class="summary-sig-arg">_filter_search(self</span>, <span class="summary-sig-arg">filter_func</span>, <span class="summary-sig-arg">order</span>, <span class="summary-sig-arg">follow_attrs</span>)</span></div>

<div>Could someone please tell me how to loop over every node (I need each node as a clade object, something like &quot;for node in tree:&quot;)? I couldn&#39;t find anything regarding _filter_search in the cookbook.</div>

<div>&nbsp;</div>

<div>Regards,</div>

<div>Robert</div>
</div>
</div></div></body></html>