TOPICS
Search

Path Polynomial


One would think that by analogy with the matching-generating polynomial, independence polynomial, etc., a path polynomial whose coefficients are the numbers of paths of length k would be defined. Although such a polynomial does not appear to have been defined previously in the literature, it is defined in this work.

The path polynomial, perhaps defined here for the first time, is therefore the polynomial

 P_G(x)=sum_(k=1)^(n-1)p_kx^k
(1)

whose coefficients p_k give the number of simple paths of length k present in a graph G on n nodes.

An empty graph has the zero polynomial as its path polynomial. For a graph with at least one edge, since the smallest possible path has length 1, the path polynomial has polynomial degree at least 1. In particular, p_1=m, where m(G) is the edge count of a graph G.

For a graph on n>=2 vertices, p_(n-1) gives the number of Hamiltonian paths. Therefore, the graph is traceable iff p_(n-1)!=0, or equivalently iff the degree of its path polynomial is n-1.

Since path counts in a disconnected graph are the sum of path counts in its connected components, the path polynomial is additive over connected components.

For three common graph families, the path polynomials have the forms

P_(P_n)(x)=sum_(k=1)^(n-1)(n-k)x^k
(2)
P_(C_n)(x)=nsum_(k=1)^(n-1)x^k
(3)
P_(K_n)(x)=sum_(k=1)^(n-1)(n!)/(2(n-k-1)!)x^k.
(4)

Here paths are unoriented, so a path and its reversal are counted only once. Unlike the s-t path polynomial, these polynomials record path lengths rather than products of edge labels.


See also

Cycle Graph, Graph Path, Hamiltonian Path, s-t Path Polynomial

Explore with Wolfram|Alpha

Cite this as:

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

Subject classifications