Grinberg-Introduction-Graph-Theory · Problem 5.25

Trees and arborescences

Mathematics — Graph Theory · spanning-trees-complete-bipartite

Problem

Let nn and mm be two positive integers. Let Kn,mK_{n,m} be the simple graph with n+mn + m vertices 1,2,…,nand−1,−2,…,−m,1, 2, \ldots, n \qquad \text{and} \qquad -1, -2, \ldots, -m, where two vertices ii and jj are adjacent if and only if they have opposite signs (i.e., each positive vertex is adjacent to each negative vertex, but no two vertices of the same sign are adjacent). [For example, here is how K5,2K_{5,2} looks like: a bipartite graph with vertices 1,2,3,4,51,2,3,4,5 on top and −2,−1-2,-1 on bottom.] How many spanning trees does Kn,mK_{n,m} have?
Intuitive explanation

A spanning tree of Kn,mK_{n,m} must connect all n+mn+m vertices using exactly n+m−1n+m-1 edges from the complete bipartite graph. The key insight is that every edge must go between the two parts (positive and negative vertices), so any spanning tree is determined by how many edges connect each positive vertex to the negative vertices—think of it as a flow problem where you're distributing mm "connection slots" among nn positive vertices such that every vertex gets at least one connection and the graph stays connected. This constraint can be counted using the Matrix-Tree Theorem or a direct combinatorial argument about valid degree sequences in a bipartite tree.

Intuitive explanation

A spanning tree of Kn,mK_{n,m} must connect all n+mn+m vertices using exactly n+m−1n+m-1 edges from the complete bipartite graph. The key insight is that every edge must go between the two parts (positive and negative vertices), so any spanning tree is determined by how many edges connect each positive vertex to the negative vertices—think of it as a flow problem where you're distributing mm "connection slots" among nn positive vertices such that every vertex gets at least one connection and the graph stays connected. This constraint can be counted using the Matrix-Tree Theorem or a direct combinatorial argument about valid degree sequences in a bipartite tree.

Related theory

Browse the problem library