Cleans tree intree of improbable nodes
(after e.g. automated reconstruction or
artificial generation of a tree structure).
Termination points in close vicinity of other nodes
on a different branch will be deleted and very short terminal branches as well.
The "close vicinity" depends on the radius of the "other node“
and on the input parameter radius.
Consecutive calls of this function can be useful.
Example:
>> clean_tree (sample2_tree, 20);
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License