Plot trees

A learning tool for the visualization of general, directed or undirected, rooted trees.
1.3K Downloads
Updated 15 Apr 2005

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
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Graph and Network Algorithms in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

An example