How to implement a general tree?

Sep 8, 2016 at 11:28am
Hey guys, I know how to implement a BST, but I have no idea how to implement a general tree. Could anyone please help me? Thanks.
Sep 9, 2016 at 4:55am
What is a "general tree"?

We can help you (find resources to) implement trees, but what trees?

I have used the Boost Graph Library in the past for trees. Its interface isn't consistent with the standard containers because graphs are too general (e.g., there's many ways to iterate over a graph.)

http://www.boost.org/doc/libs/1_61_0/libs/graph/doc/

Last edited on Sep 9, 2016 at 4:58am
Topic archived. No new replies allowed.