A finite family of nonempty connected subgraphs of a tree with pairwise nonempty intersections has a common vertex. For a finite ambient tree, prove this by deleting a leaf of a tree . If one member is , pairwise intersection proves the result immediately. Otherwise remove from every member containing it. Each such member remains nonempty and connected and contains the unique neighbour of . Hence every pair still intersects, even if its original intersection consisted only of , and mathematical induction applies. This is the Helly property specialized to trees.
Leaf-labelled binary tree 2026-10-24
A binary tree with each data label stored at a leaf of a tree. One useful Haskell datatype has constructors
One a for a leaf and Two (Tree a) (Tree a) for an internal node. Every finite inhabitant has at least one leaf, so this datatype cannot encode an empty leaf sequence. Its natural tree fold has a leaf operation a -> b and an internal operation b -> b -> b; replacing the two constructors by those operations defines the structural recursion. Leaf of a tree Created 2026-10-20 Updated 2026-11-05
A leaf of a tree is a vertex of degree one in an unrooted tree. In a rooted tree, the usual convention instead calls a vertex a leaf of a tree when it has no children, so the one-vertex rooted tree has a leaf even though its degree is zero. Every finite tree with at least two vertices has at least two leaves: the endpoints of a longest simple path cannot have an unused neighbour without extending that path. Removing a leaf and its incident edge leaves a tree, a useful step in mathematical induction.
Use the recorded child list as the depth-first traversal order. A leaf of a tree has no children, so it contributes its own identity once. Closure cancels the remaining traversal; a normal completion closes the output so that a consumer can detect end-of-fringe.
def dfFringe(node: Array[Node], root: NodeId, fringe: ![NodeId]): PROC = proc {
def walk(v: NodeId): Unit = {
val cs = node(v).children
if (cs.isEmpty) fringe ! v
else cs.foreach(walk)
}
try { walk(root) }
catch { case _: io.threadcso.process.Stopped => () }
finally { fringe.closeOut }
}A completed finite spanning tree has no recursive child graph cycle, so this visits a finite number of vertices. A blocked leaf send is released if its output closes. A singleton root is itself a leaf of a tree and is output once. With sufficient call-stack space,
Here each is a nonempty connected subgraph of a tree, rather than a descendant-closed data-structure subtree. We prove the Helly property for connected subgraphs of a tree by mathematical induction on the number of vertices of .
For a one-vertex tree, every nonempty contains that vertex. For a larger tree, choose a leaf of a tree using part (i), and denote its unique neighbour by . If some consists only of , the assumed pairwise intersections force every to contain , and we are done.
Otherwise, remove from every that contains it, leaving all other unchanged. Any affected has at least two vertices; connectedness forces it to contain and the edge . Thus is a leaf of a tree of , and part (ii) shows that its deletion leaves a nonempty tree. All reduced are therefore nonempty connected subgraphs of a tree .
They still intersect pairwise. An original common vertex other than survives. If a pair had only in common, both members would also contain , by the previous paragraph, contradicting that it was their only common vertex. The induction hypothesis now supplies a common vertex of the reduced family, which is also common to the original family. Consequently
Deleting a vertex and its incident edge cannot create a graph cycle, so is acyclic. It remains to establish connectedness and nonemptiness.
Since the leaf of a tree has one neighbour, has at least two vertices, so is nonempty. For any two remaining vertices , take their unique simple graph path in . It cannot pass through : an internal vertex on such a graph path has two incident edges, whereas has vertex degree one. Neither endpoint is , so the entire graph path remains after deletion. The remaining graph is connected and acyclic, givingThis includes the two-vertex case, where deletion leaves the one-vertex tree.
A tree is a nonempty connected graph with no graph cycle. A leaf of a tree is a vertex of vertex degree one. As usual in this finite graph theory problem, trees are finite; the assertion would fail for a doubly infinite graph path.
Take a longest path in a tree with at least two vertices. Connectedness gives . If had a neighbour outside this graph path, the path could be extended, contradicting maximal length. If it had a neighbour with , that edge together with the segment would make a graph cycle. Thus its only neighbour is , and it is a leaf of a tree. The same argument at the other end makes a second, distinct leaf of a tree. Hence
Past exam of the topology and groups course of the University of Oxford 2023 3 b i Solution 2026-10-25
A finite tree is a nonempty connected graph with no graph cycles. We show by mathematical induction on its number of vertices that it has edges. For there are no edges, so the assertion holds.
If , take a path in a graph of maximal length among those without repeated vertices. Each endpoint is a leaf of a tree: an additional incident edge would either extend the path in a graph or create a graph cycle. Delete one such leaf of a tree and its unique incident edge. The remaining graph stays connected, since a path in a graph between remaining vertices never needs that terminal edge, and it has no graph cycles. It is therefore a tree with vertices and, by mathematical induction, edges. Restoring the deleted edge gives .
Thus its Euler characteristic is