<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> </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's for tree traversals. However I don'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'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 "for node in tree:")? I couldn't find anything regarding _filter_search in the cookbook.</div>
<div> </div>
<div>Regards,</div>
<div>Robert</div>
</div>
</div></div></body></html>