Questions tagged [treenode]

The base element of a hierarchical tree-like data structure.

Trees are hierarchical data structures that represent undirected acyclic graphs. A tree is therefore composed of connected nodes.

One specific node is the root of the tree. The root node is connected to several nodes (sometimes called children), each of these being the root of a subtree, and so-on. A node of a tree that does not have any children is called a leaf. All nodes of the tree are connected directly or indirectly to the root.

Treenodes are usually recursive datastructures.

See also:

Specific usages:

  • In .Net framework a TreeNode is a node in TreeView UI control that displays tree-like objects.
  • In Java a TreeNode is an interface that nodes of a JTree UI control that displays tree-like objects.
630 questions
-1
votes
2 answers

How to use a recursive function to print a node tree

I have a function to which I am passing a node tree. The function is supposed to print the node tree in this form: root node node node node node node node node I cant seem to wrap my head around how to do it. This is what I got so far:…
tzippy
  • 6,458
  • 30
  • 82
  • 151
-1
votes
1 answer

windows forms tree view nodes

I have a windows forms with tree nodes. Every time there is a new node added to it, it should show a different color for upto 5 days. So that it will be known to users that these are new things added to forms. Can someone tell me how is this…
ny su
  • 105
  • 2
  • 14
-1
votes
1 answer

How can I detect if my selected child node is a specific child node?

Since the TreeView control doesn't provide an event that is raised when a child node is selected on a tree node, I am trying to construct a way in which I can check if the selected child node is a specific child node. I need this to set a display…
Joe Q
  • 16
  • 5
-1
votes
1 answer

Out of Range TreeNode C# Windows Forms When set position count

I'm really lost trying to build a dynamically TreeView on WinForm. I already look for some questions in other forums and here but none help me out of this situation. So, I have a Treeview running. But when I try to implement the 5 child nodes, I get…
-1
votes
3 answers

Why I cant access this private variable?

Im trying to made BST with OOP and my lecturer want me to made the node into class so I made this code node.h #ifndef node_h #define node_h #include using namespace std; class Node{ public : Node(); Node(Node*…
Alv
  • 21
  • 7
-1
votes
1 answer

tree nodes with sequence of natural number as prefix in extjs

I have been looking for a way to represent tree node with natural sequence number as prefix of the text dynamically.As the system has dynamic add/update/delete, so number should automatically alter. For eq: if a node has 3 children as item1, item2 &…
iamvik
  • 51
  • 8
-1
votes
1 answer

Find Node By Unique value in First Child Node Sibling Structure

I tried my best to find specific node in first child node sibling structure but I am not able to do this any one who can help or give me method to find node method. I can write add method but I'm not able to write method. My code: public int Weight…
Wajihurrehman
  • 567
  • 3
  • 15
  • 29
-1
votes
1 answer

Creating a right skewed binary tree in C

In this program, the user should be able to create an arbitrary binary tree from a sequence of input integers and they should be able select between to balanced, left_only, right_only. I created it for balanced binary tree, but now I am unable to…
user2750830
  • 17
  • 3
  • 12
-1
votes
1 answer

get TreeNode from jsf page

I have a Tree primefaces component that i customized in my code, here is the code of this jsf page that contain my treeNodes :
Abdelghani Roussi
  • 2,707
  • 2
  • 21
  • 39
-1
votes
1 answer

JTree - how can i stop children from showing relative path?

Before we start, I'd like to note that I'm rather new to JTree and its relatives. The children in my nodes show the relative path back to its parent, but I'd like for it not to. Here is a picture of what it looks…
Polycoding
  • 25
  • 8
-1
votes
1 answer

JSF 2 SelectOneMenu updates other SelectOneMenu

I want to update the second SelectOneMenu when I select any item of the first SelectOnMenu.So there are my two SelectOneMenu:
Hamdi Dousdou
  • 57
  • 1
  • 12
-1
votes
1 answer

find a node in a treeview and save the trace in a list<> in C#

i was breaking my head with this, i will explain i have a treeview and i need to find a node, i have the node's id, but i want to save the trace of the node in a list e.g. if i want to find node 1.2.1.1 node1 node1.1 node 1.1.1 …
user2984254
  • 109
  • 1
  • 7
-1
votes
1 answer

Inserting nodes with equal keys in a B-tree

I am trying to insert 3 4s into an empty B-tree. t = 3. I tried some applets online but all thay do is insert 4 once and then just drop 4. Is it the way it has been implemented in CLRS as I did not completely understand their pseudocode.
-1
votes
1 answer

Arrange child nodes using java

I have following Three different Nodes Hierarchy (data): 1) Root FirstChild leaf 2) Root SecondChild leaf 3) Root ThirdChild LeafRoot leaf Result i want as below in One tree : Root …
Butani Vijay
  • 4,181
  • 2
  • 29
  • 61
-1
votes
1 answer

Extjs Check Tree node icon issue

I am new in Extjs, but i build a Extjs tree using Json data, also provided it checkbox in the tree nodes. But my requirement is now to have a new icon before the checkbox (parallely) of each node and also need to find the events on those icon and…
Nitin Soni
  • 87
  • 1
  • 13
1 2 3
41
42