f = fPolynomial P
f = fPolynomial(P, VariableName => symbol)
The f-polynomial of $P$ is the polynomial such that the coefficient on $q^i$ is the number of chains of length $i$ in $P$.
The f-polynomial of the $n$ chain is $(q+1)^n$.
|
|
The object fPolynomial is a method function with options.