• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tree examples

 
mohana konakanchi
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am looking for TreeNode implementation where it each node can have more than one parent and any number of child nodes. It sould have depthFirst travarse implementation(DefaultMutableTreeNode will have only one parent for each node)
If any body have sample code, or pointers please let me know.
Mohana
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a node can have more than one parent, I don't think
you have a tree anymore.
What would its display look like?
Joe
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!