Plot trees
No License
We developed a new function for the correct visualization of general directed and undirected rooted trees. Our function Drawtree(p,pre,x) is an educational purpose function which has the following three inputs:
1) p is the vector of parent pointers in which p(r) = r implies that r is the root.
2) pre is the vector of the pre-order traversal.
3) x is a vector which describes the arc?s directions.
This work was analytically presented in: Paparrizos K., Samaras N. and Sifaleras A., «A learning tool for the visualization of general, directed or undirected rooted trees» , Proc. of the 1st International Conference on New Learning Paradigms and New Learning Tools, (New Learning 2004), 10-12 May 2004, pp. 205-213, Skiathos, Greece.
Cite As
Angelo Sifaleras (2024). Plot trees (https://www.mathworks.com/matlabcentral/fileexchange/7410-plot-trees), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | An example |