A node with no children in a rooted tree. This depends on the chosen root: the root of a nontrivial tree can have undirected vertex degree one while still having a child and therefore not being a leaf in the rooted sense. In a single-node rooted tree, the root is a leaf. The distinction matters when counting the complement of the internal vertices of a rooted tree.
With every edge directed away from the root of a tree, a rooted tree leaf has outdegree zero.[ref]
For an original example, take and choose root. The children of consist of, and the children of are. Thus are the rooted leaves. Vertex has undirected degree one but has a child, so it is not a rooted leaf in this rooting.
For a nonroot vertex, one incident edge goes to its parent in a rooted tree, and all remaining incident edges go to children. Therefore
The root instead satisfies . A nonroot vertex is consequently a rooted leaf exactly when its undirected degree is one. The root is a rooted leaf exactly when the entire connected tree has one vertex.
Changing the root can change leaf membership without changing any edge. On the three-vertex path, rooting at gives one rooted leaf, while rooting at gives two, .
A finite rooted tree always has a leaf: take a vertex maximizing its graph distance from the root. Any child would lie one edge farther away, contradicting maximality. An infinite ray rooted at its endpoint has a child at every vertex and supplies the corresponding counterexample to an unrestricted infinite-tree claim. Rooted terminal points and endpoints of an unrooted graph therefore need their conventions stated explicitly.

Articles by others on the same topic (0)

There are currently no matching articles.