• Post Reply Bookmark Topic Watch Topic
  • New Topic

TreeNode Problem...

 
vinaya kumar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have TreeNode,
i.e TreeNode c.
how do i know whether c is a root node or not..
Any clues...
Assuming i have only one node.. one root node.
i can compare c.isLeafNode which will return
true.. and then .. i have no clue,,,
can any one help me
vinaya
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vinaya,
You can do it by the following:

Regards,
Manfred.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!