Trees in C++

A

Adam Hartshorne

Can anybody point me in the direction of a decent general purpose tree
data structure, as I have been less than impressed by the core::tree<>
discussed on gamedev.net

Adam
 
D

Daniel T.

Adam Hartshorne said:
Can anybody point me in the direction of a decent general purpose tree
data structure, as I have been less than impressed by the core::tree<>
discussed on gamedev.net

To do an nary tree, I do:

std::map< Key, std::vector<Key> >
 
V

Victor Bazarov

Adam said:
Can anybody point me in the direction of a decent general purpose tree
data structure, as I have been less than impressed by the core::tree<>
discussed on gamedev.net

Have you tried googling for it?

IIRC, there is a graph library (part of Boost libraries, methinks).
A tree is a directional acyclic graph.


V
 
G

gottlobfrege

Victor said:
Have you tried googling for it?

IIRC, there is a graph library (part of Boost libraries, methinks).
A tree is a directional acyclic graph.

I second that idea.
You can also take at the 'forest' object at opensource.adobe.com.
 

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

Similar Threads

bench: binary trees 10
Binary search trees (AVL trees) 34
B-trees 12
comparing binary trees in C 12
Trees 6
Empty binary trees 7
Left leaning red black trees 10
Alternative to Malloc in C 0

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top