Best structure for a tree class's children

A

ahaupt

Hi all,

Just a quick one: At the moment I use an ArrayList to store 'n Tree
classes' children.

Is this the best/quickest structure to use? What do you guys use?

Best,
Andre
 
A

ahaupt

Maybe I wasn't quite clear enough about the structure of the class. I'm
actually building a tree out of nodes, and at the moment a parent node
stores its direct descendents in a ArrayList.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top