How do I create a tree with the capability of deleting nodes?

I want to be able to create a tree (parent and multiple layers of nodes) in MATLAB, and have the ability to perform operations on the tree such as deleting leafs. What is the best way to implement this in MATLAB?
Currently, I've been making leafs by creating new handle classes and storing them in an one dimensional children cell in its parents class.

Answers (2)

The graph and network algorithm functionality introduced in MATLAB in release R2015b may be of interest to readers and posters in this discussion.

This question is closed.

Asked:

on 2 Apr 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!