In a tree data structure, the root node is a node with no parent, but which typically has children.
Questions tagged [root-node]
36 questions
0
votes
1 answer
Tree class root node not updating
I'm trying to write an AVL Tree class in C++ and im starting by just writing code for a normal BST but I have a problem. The problem I'm having is with my insert function. I try to insert elements into the tree it doesn't seem to actually do it. I'm…

Esteban D
- 69
- 4
0
votes
1 answer
jsoncpp empty root node with comment
Using jsoncpp, if I use the following code, I get a root node with a comment and a Json::ValueType of nullValue:
std::string somejson("// Configuration options\
{\
// Default encoding for text\
\"encoding\" : \"UTF-8\",\
\
// Plug-ins loaded at…

gibbotronic
- 61
- 8
0
votes
1 answer
Root node in a tree should be expanded by default
I need only Root node to be expanded by default. Can anybody help me with this. Following is the HTML and Jquery.
It has a expand and collapse functionality. When u click on text in a tree it will expand and collapse.
I have added in JSFiddle…

Gowthamr.cs
- 141
- 2
- 12
0
votes
1 answer
JavaFX8 tree table view custom root row
In my tree-table-view I have a root item which contains child items(I have mistakenly called them root items) that in turn have child items. I need to customize those mistakenly called root items rows text appearance. Is there such a selector or…

Mike Spike
- 389
- 8
- 20
0
votes
0 answers
Root Node design for a hierarchy/treeview in the user interface
I want to display hierarchical data in the user interface in a treeview control.
The question is should the user has the freedom to define its first root node itself.
I do not care wether a tree has a root node to be a tree.
I just think about the…

Pascal
- 12,265
- 25
- 103
- 195
-2
votes
2 answers
Iterative way to delete the root node of a binary tree in c
void Bst_DeleteStudent(struct BstStudent** root, char student_name[]){
struct BstStudent* current = *root;
struct BstStudent* parent = NULL;
int flag = 0;
int i;
while(current != NULL){
if(strcmp(current->name,…

Minh Nguyen Nhat
- 15
- 4