Home Recursive traversal of phylogenetic tree in MATLAB
Reply: 0

Recursive traversal of phylogenetic tree in MATLAB

reaffer
1#
reaffer Published in 2017-12-07 17:53:10Z

I can't find in the documentation a way of recursively traversing a phylogenetic tree object as returned by seqlinkage built-in function. What I want to do is something like:

function f(node = root initially)
begin:
  if node is not a leaf:
    a = f(node.left_child)
    b = f(node.right_child)
    do_something_with(a,b)
    ...
  else:
    do_something()
end.

I didn't find something similar to this conventional way of traversing trees (node > children ..) in the documentation.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.3056 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO