Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tree examples  RSS feed

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!