Forest-Representable Matrices
- Forest-representable matrices are defined by block structures that follow forest (or tree) topologies, enabling sparse or structured inverses and efficient low-rank factorizations.
- They support fast algebraic operations like matrix-vector products and inversions by leveraging tree quasi-separable constructions and nested bases.
- Applications span numerical linear algebra and combinatorial matrix theory, generalizing formats like SSS and HSS while also connecting to Laplacian and total positivity formulations.
Forest-representable matrices are matrices whose structure is governed by a forest. In the rank-structured formulation introduced for tree quasi-separable matrices, a matrix is forest-representable if there exists a block partition of its rows and columns indexed by the vertices of a forest such that either has block-sparsity consistent with , or has block-sparsity consistent with ; when the forest has multiple components, a permutation puts into block-diagonal form, one block per tree component (Govindarajan et al., 2024). In other settings, closely related terminology is used for matrices whose entries enumerate forests, matrices derived from spanning rooted forests, adjacency-based encodings that classify forests, and lower-triangular matrices that encode ranked tree shapes (Chebotarev et al., 2013, Traldi, 2020, Jennings-Shaffer et al., 30 Oct 2025). This suggests that the term does not denote a single universal matrix class, but rather a family of matrix constructions in which forest topology is the organizing constraint.
1. Forest topology as a matrix constraint
Let be an undirected acyclic graph, possibly disconnected, with connected components , and let each vertex carry an index set 0. In the numerical linear-algebraic sense, forest-representability means that 1 is viewed as a graph-partitioned block matrix 2, and either 3 unless 4 or 5, or the same sparsity statement holds for 6 instead of 7 (Govindarajan et al., 2024).
The disconnected case is not merely formal. If 8 has several components, the permutation bringing 9 to forest form yields a block-diagonal matrix with blocks indexed by the connected components 0. Each block can then be represented and operated on independently, so a forest-representable matrix is a direct sum of tree quasi-separable blocks, one per tree component (Govindarajan et al., 2024).
A closely related situation arises for sparse matrices whose adjacency graph is itself a tree. Such a sparse matrix 1 is sparse, whereas 2 is typically dense; nevertheless, 3 satisfies the graph-induced rank structure and admits an exact tree quasi-separable form with generator sizes equal to the ranks of unit Hankel blocks (Govindarajan et al., 2024). In this sense, forest-representability includes both explicit forest sparsity and forest-shaped inverse sparsity.
2. Tree quasi-separable realization
For a rooted tree 4 with root 5 and a partition 6 of 7, a tree quasi-separable (TQS) matrix is defined by local generators attached to vertices and edges. These include the explicit diagonal blocks 8, input-to-edge maps 9 and 0, edge-to-edge transfers 1, 2, 3, and edge-to-output maps 4 and 5 (Govindarajan et al., 2024).
For 6, the off-diagonal block is obtained by multiplying operators along the unique path 7: 8 This path factorization implies that off-diagonal blocks between disjoint subtrees are low-rank and can be written in the canonical form
9
where 0 and 1 are bases assembled from local generators and 2 collects the couplings transmitted along the path and sibling transfers (Govindarajan et al., 2024).
An important structural feature is nestedness. Internal-node bases are formed from child bases through small transfer matrices: 3 Diagonal and near-diagonal blocks remain explicit through the 4, while compressed representation is reserved for off-diagonal interactions connecting disjoint subtrees across the tree topology (Govindarajan et al., 2024).
3. Hankel-rank characterization and specialization to SSS and HSS
The decisive structural invariant in the TQS theory is the rank of tree-induced Hankel blocks. For an edge 5, one defines a unit Hankel subset by
6
where 7 denotes the descendants of 8, including 9 itself, and the associated Hankel block is 0 (Govindarajan et al., 2024).
The key theorem states that if 1 is a graph-partitioned matrix on a tree, then 2 admits a TQS representation whose rank profile satisfies
3
and this realization is minimal: any other TQS realization on the same tree has edge ranks 4 for all 5 (Govindarajan et al., 2024). The intuition is that each unit Hankel block measures the minimal state dimension needed to transmit interactions across the corresponding cut; any smaller edge state would force a lower-rank factorization of 6, which is impossible.
This theorem simultaneously recovers the two classical semi-separable formats. When the tree is a path graph, rooted at the last node, the TQS operators reduce to the classical sequentially semi-separable representation; the relevant Hankel blocks coincide with the classical SSS off-diagonal Hankel blocks, and their ranks determine the generator sizes (Govindarajan et al., 2024). When the tree is a post-ordered binary partition tree with internal nodes taken to be empty, the TQS form becomes hierarchically semi-separable, with sibling interactions compressed level by level and nested bases propagated across levels (Govindarajan et al., 2024).
A common misconception is that forest-representability in this setting is merely a notational reformulation of SSS or HSS. The TQS construction is instead a simultaneous generalization: the path graph yields SSS, the hierarchical binary tree yields HSS, and general trees interpolate between these two extremes (Govindarajan et al., 2024).
4. Algebraic operations, conversion algorithms, and efficiency regime
The TQS class is closed under addition, multiplication, and inversion, provided the input and output partitions coincide in the inversion case. If 7 is the maximum generator rank and 8 is the maximum node degree, the associated algorithms are fast when 9 is small, 0 is bounded, and the block sizes 1 are uniformly bounded (Govindarajan et al., 2024).
| Operation | Structural statement | Stated cost |
|---|---|---|
| Matrix–vector product | state-space upsweep and downsweep | 2 flops |
| Addition | 3 | edge-wise concatenation and recompression 4 |
| Multiplication | 5 | 6 per mat-vec and 7 for recompression |
| Inversion / direct solve | 8 for nonsingular 9 | typical direct solve 0 |
Conversion from a dense matrix to TQS proceeds in two passes. In the upsweep, for each edge 1 with 2, one forms the unit Hankel block 3, computes a low-rank factorization 4, assigns 5 and 6, and compresses interior augmented matrices to obtain transfer operators. In the downsweep, for each edge 7 with 8, one analogously factors 9, assigns 0 and 1, and extracts the sibling and parent transfers 2 and 3 (Govindarajan et al., 2024).
The factorization at each edge may use deterministic truncated SVD, strong RRQR, or randomized SVD. Accuracy is controlled by a truncation tolerance 4; if each unit Hankel block 5 is approximated with error 6, then the reconstruction error obeys
7
with 8 depending mildly on 9 and path lengths (Govindarajan et al., 2024).
The format is not universally economical. For arbitrary dense matrices, the unit Hankel blocks can have large rank, yielding large generators. The arrowhead matrix on a star tree is the standard counterexample: the TQS representation then uses roughly as many parameters as the dense matrix, while an SSS or HSS representation on a different topology may be more efficient (Govindarajan et al., 2024).
5. Graph-theoretic, Laplacian, and matroidal formulations
Several other matrix constructions encode forests directly rather than through low-rank path factorization. A real symmetric matrix is called acyclic if it is the adjacency matrix of a weighted forest with real nonzero edge weights and possibly vertex weights; if the matrix is irreducible, the forest is a tree (Bahmani et al., 2016). For such matrices, the characteristic polynomial equals the matching polynomial of the weighted forest, and explicit eigenvector formulas are available in terms of path weights and characteristic polynomials of vertex- or path-deleted submatrices (Bahmani et al., 2016).
A different line of work studies Laplacian-based matrices of spanning rooted forests. For a weighted digraph with column Laplacian 0, the matrix-forest theorem gives
1
where the entries of 2 and 3 admit combinatorial interpretations in terms of weighted spanning out-forests (Chebotarev et al., 2013). The limiting matrix 4 is the eigenprojection of 5 onto its nullspace, satisfies 6, and exposes the source-knot structure of the digraph (Chebotarev et al., 2013).
Forests can also be recovered from adjacency-derived binary matroids. Over 7, the matrices
8
define the restricted isotropic and isotropic matroids of a forest 9. For forests 00 and 01, the equivalence
02
shows that these matrix representations classify forests up to isomorphism (Traldi, 2020).
Hierarchical trees admit yet another sparse matrix representation, the Generation Matrix. Under descending order of height, the Generation Matrix is lower triangular, has exactly 03 nonzeros for a tree with 04 nodes, and becomes block-diagonal for forests, one block per component (Cai et al., 2022). This representation is designed so that triangular solves simulate upward and downward recursive traversals (Cai et al., 2022).
6. Enumerative, positivity, and ranked-tree encodings
In combinatorics, lower-triangular matrices whose entries enumerate trees and forests are also described through forest structure. The matrix
05
counts rooted labeled trees on 06 with a prescribed root statistic, and also partial functional digraphs on 07 with exactly 08 vertices of out-degree 09; its row-generating polynomials are 10, the matrix is totally positive, and the sequence 11 is coefficientwise Hankel-totally positive (Chen et al., 2023). The related forest matrix
12
enumerates 13-component forests of rooted trees on 14, with weighted generalizations by improper edges and proper-child multiplicities; its matrix and row-generating polynomials are coefficientwise totally positive and coefficientwise Hankel-totally positive under Toeplitz-total positivity assumptions on the weight sequence 15 (Sokal, 2021). A 16-analogue replaces binomial coefficients and powers by Gaussian binomials and 17-integers, yielding coefficientwise totally positive matrices proved via planar networks and the Lindström–Gessel–Viennot lemma (Gilmore, 2021).
Restricted Stirling and Lah number matrices provide another forest-based representation. For restriction sets 18 with 19, each entry of the inverse matrices 20, 21, and 22 is a signed difference of cardinalities of explicitly defined families of increasingly ordered, min-first ordered, or linearly ordered phylogenetic forests; when 23 has no exposed odds, each inverse entry is, up to an explicit sign, the cardinality of a single family of 24-good forests (Engbers et al., 2016).
A more recent phylogenetic use of forest-representable matrices is the 25-matrix for ranked tree shapes. For an 26-leaf fully heterochronous ranked tree shape, the 27-matrix is lower triangular of size 28, and 29 counts the number of edges whose parent rank is at most 30 and whose child rank is greater than 31 (Jennings-Shaffer et al., 30 Oct 2025). Valid 32-matrices are characterized by monotonicity constraints, diagonal and subdiagonal rules, and a four-entry local bound
33
with 34 and 35 determined by the left, above, above-left, and previous diagonal values (Jennings-Shaffer et al., 30 Oct 2025). This local rule yields an explicit bijection with ranked tree shapes and supports enumeration and probabilistic modeling (Jennings-Shaffer et al., 30 Oct 2025).
Across these settings, forest-representable matrices serve different purposes: low-rank compression for sparse-inverse problems, Laplacian resolvents for spanning forests, algebraic classification of forest graphs, total positivity in forest enumerators, and lower-triangular encodings of ranked tree shapes. The shared principle is precise rather than metaphorical: a forest supplies the combinatorial skeleton that determines which matrix entries are allowed, how they factor, or what they count.