Root covers the root, what are the rest of the nodes collectively called?
Asked
Active
Viewed 1,351 times
4 Answers
3
I had the same problem -- I was creating a base class for all non-root nodes and was looking for a succinct name. Here's what I came up with (and I realize none of these is perfect):
NonRootNode
-- this is a bit clumsy, but certainly descriptiveChildNode
-- short, but potentially misleadingParentedNode
-- I like this oneNestedNode
-- might work depending on the context

Daniel Wolf
- 12,855
- 13
- 54
- 80
3
Just like in the real world: branches and leaves
They are all child nodes (of the root or some other node).

Axel Fontaine
- 34,542
- 16
- 106
- 137
-
i'm looking for a term that would encompass both branches and leaves. I'm hoping there is something better than 'non-root node'. – glenn Jan 16 '11 at 13:51
-
well all non-root nodes are child nodes – Axel Fontaine Jan 16 '11 at 14:06
1
R
/ \
B L
/ \
L B
/
L
R is root, B are branches L are leaves

qwertymk
- 34,200
- 28
- 121
- 184
-
is there a term that covers branches and leaves but excludes the root? in other words, any node that's not a root. – glenn Jan 16 '11 at 13:49
-