mercredi 3 février 2016

Composite design pattern - strategy for tracking leafs in the tree structure

What is a good strategy for tracking leafs in a tree structure?

For my purposes, my leafs are given names but the names don't mean much without knowing where they exist within the tree. For example, there may be numerous leafs of the same name so I'll need to know which "branch" they reside on.

Any recommended techniques?

Aucun commentaire:

Enregistrer un commentaire