TOPICS
Search

Treedepth


The treedepth td(G) of a graph G is the minimum integer h such that there exists a rooted forest F whose longest root-to-leaf path contains h vertices and whose closure contains G as a subgraph (Nešetril and Ossona de Mendez 2006, 2012). The closure of a rooted forest is the graph obtained by adding an edge from each vertex to each of its ancestors.

Nešetril and Ossona de Mendez (2006) used the spelling "tree-depth." The unhyphenated spelling "treedepth" is common in modern algorithmic and structural graph theory (Czerwiński et al. 2021, Huynh et al. 2022, Hodor et al. 2026).

This graph invariant is implemented as GraphData[graph, "TreeDepth"]. Note that the Wolfram Language symbol TreeDepth[tree] has a different meaning, giving the maximum level of a symbolic tree or subtree rather than the graph invariant discussed here.

The term tree depth is also used in knot theory for a quantity associated with resolving trees of links.

Hodor et al. (2026) relate treedepth to 2-treedepth in graphs excluding a fixed path graph as an induced subgraph. For integers t>=2 and k>=1, if G has no induced path graph P_t and has 2-treedepth at most k, then

 td(G)<2(|_(t-1)/2_|+k-1; |_(t-1)/2_|),

where |_x_| is the floor function. Examples attain at least half this upper bound. For graphs with no induced P_4, treedepth equals 2-treedepth.


See also

2-Treedepth, Block Treedepth, Forest, Pathwidth, Resolving Tree, Rooted Forest, Tree Height, Treewidth

Explore with Wolfram|Alpha

References

Czerwiński, W.; Nadara, W.; and Pilipczuk, M. "Improved Bounds for the Excluded-Minor Approximation of Treedepth." SIAM J. Discrete Math. 35, 934-947, 2021. https://doi.org/10.1137/19M128819X.Hodor, J.; Illingworth, F.; and Mazur, T. "Treedepth and 2-Treedepth in Graphs with No Long Induced Paths." Electron. J. Combin. 33, P3.55, 2026. https://doi.org/10.37236/14727.Huynh, T.; Joret, G.; Micek, P.; Seweryn, M. T.; and Wollan, P. "Excluding a Ladder." Combinatorica 42, 405-432, 2022. https://doi.org/10.1007/s00493-021-4592-8.Nešetril, J. and Ossona de Mendez, P. "Tree-Depth, Subgraph Coloring and Homomorphism Bounds." Europ. J. Combin. 27, 1022-1041, 2006. https://doi.org/10.1016/j.ejc.2005.01.010.Nešetril, J. and Ossona de Mendez, P. Sparsity: Graphs, Structures, and Algorithms. Algorithms and Combinatorics, Vol. 28. Berlin, Germany: Springer, 2012.

Cite this as:

Weisstein, Eric W. "Treedepth." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Treedepth.html

Subject classifications