posted 15 years ago
Howdy Ranchers,
I was wondering if any one can point me to a package or framework for working with objects that are linked in a tree structure. I know all about TreeSet and TreeMap, but those are data structures that are backed by trees. What I'm looking for are interfaces and utility classes that explicitly expose and utilize the tree-like references among a group of objects. Something along the lines of ...
TreeNode node = ...;
SomeUtilityClass.search(node, "search query");
Is there such a package? Or does everyone end up writing their own little BFS and DFS tree search algorithms?