GraphTheory
GraphPolynomial
construct graph polynomial
Calling Sequence
Parameters
Description
Examples
References
Compatibility
GraphPolynomial(G,x)
G
-
undirected unweighted graph
x
name or list(algebraic)
GraphPolynomial(G,x) returns a polynomial in the variables x1,...,xn when x is a symbol and G is a graph with n vertices. The polynomial consists only of linear factors of the form xj−xk where j and k represent adjacent vertices.
If x is a list of algebraic expressions whose length is equal to the number of vertices of G, the polynomial is formed using linear factors of the form xj−xk where j and k represent adjacent vertices.
with⁡GraphTheory:
G≔Graph⁡1,2,3,4,5,6,1,4,2,6,3,4,3,5,4,5,4,6,5,6:
GraphPolynomial⁡G,x
x1−x4⁢x2−x6⁢x3−x4⁢x3−x5⁢x4−x5⁢x4−x6⁢x5−x6
GraphPolynomial⁡CycleGraph⁡4,x,y,z,w
x−y⁢x−w⁢y−z⁢z−w
Noga Alon and Michael Tarsi, "A note on graph colorings and graph polynomials", J. Combin. Theory Ser. B 70 (1997), no. 1, 197–201, doi: 10.1006/jctb.1997.1753
The GraphTheory[GraphPolynomial] command was updated in Maple 2019.
See Also
Neighbors
SpanningPolynomial
Download Help Document