Rooted tree
Builds on Tree
Definition
A rooted tree is a pair of a tree and a vertex of , the root.
Let be a vertex, and let be the neighbour of on the unique path from to . Then is the parent of , and is a child of . The depth of is the distance from to .
Remarks
The root has no parent, and every other vertex has exactly one parent. A vertex with no child is a leaf of the rooted tree. With this convention the root can be a leaf only when the tree has one vertex. An ordered rooted tree also fixes an order of the children of each vertex. A binary tree is a related recursive structure.
Reading path
To understand this page from the ground up, read these 10 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Graph definition
- Walk definition
- Reachability definition
- Trail definition
- Connected graph definition
- Circuit definition
- Cycle definition
- Acyclic graph definition
- Tree definition
- Rooted tree definition
Where this leads
1 page builds on this one.
Further reading
About this page
| Tag | 0C9J6W2A8A |
|---|---|
| URI | m2://0C9J6W2A8A |
| Kind | definition |
| Writing | W1 stated |
| MSC | 05C05 |
| Defines | Rooted tree |
| Uses | Tree |
Markdown · JSON · Edit on GitHub
What this page needs for W2
- edge instance_of in: one example (0 of 1)
- edge not_instance_of in: one non-example that fails one clause (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.