Reputation: 651
Root covers the root, what are the rest of the nodes collectively called?
Upvotes: 6
Views: 1682
Reputation: 13663
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 contextUpvotes: 3
Reputation: 35169
Just like in the real world: branches and leaves
They are all child nodes (of the root or some other node).
Upvotes: 3
Reputation: 3448
In the middle they're called branches. On the very ends, they're leaves.
Upvotes: 2