TOPICS
Search

s-t Path Polynomial


Let G be an edge-labeled acyclic digraph with distinguished source s and target t, and let x_e be the label of edge e. The s-t path polynomial of G is

 P_(G,s,t)=sum_(Q:s->t)product_(e in Q)x_e,

where the sum is over all directed graph paths Q from s to t and the product is taken in the order in which the edges occur along Q. It is naturally a polynomial in the free noncommutative semiring, although commutative specializations are also useful.

An s-t path expression, also called a factoring of G, is a formula using addition, multiplication, and the edge labels that represents P_(G,s,t). Its length is the number of edge-label occurrences in the formula tree. This measure counts repeated subexpressions each time they occur and therefore differs from the size of a shared algebraic branching program or circuit.

Setting the labels of a set C of edges to 0 makes P_(G,s,t) vanish if and only if C is an s-t edge cut. Moreover, C is inclusion-minimal if and only if the polynomial remains nonzero when the zero substitution is instead made for any proper subset of C (Korenblit and Levit 2026).

This polynomial should not be confused with the path polynomial sum_(k)p_kx^k, whose coefficient p_k counts graph paths of length k.


See also

Acyclic Digraph, Algebraic Branching Program, Edge Cut, Graph Path, Path Polynomial, Series-Parallel Graph

Explore with Wolfram|Alpha

References

Bein, W. W.; Kamburowski, J.; and Stallmann, M. F. M. "Optimal Reduction of Two-Terminal Directed Acyclic Graphs." SIAM J. Comput. 21, 1112-1129, 1992. https://doi.org/10.1137/0221065.Korenblit, M. and Levit, V. E. "Algebraic Expressions for Directed Grid Graphs with Diagonal Edges: Decomposition Bounds, Lower Bounds, and Algebraic-Branching-Program Methods." Research Square preprint, 2026. https://doi.org/10.21203/rs.3.rs-9728120/v1.

Cite this as:

Weisstein, Eric W. "s-t Path Polynomial." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/s-tPathPolynomial.html

Subject classifications