networks
chrompoly
chromatic polynomial of an undirected graph
Calling Sequence
Parameters
Description
Examples
chrompoly(G, lambda)
G
-
undirected graph or network
lambda
variable in chromatic poly (usually number of colors)
Important: The networks package has been deprecated. Use the superseding command GraphTheory[ChromaticPolynomial] instead.
This routine returns the chromatic polynomial of the graph G as a polynomial in lambda. The value of this polynomial gives the number of proper vertex-colorings of G using lambda colors.
The procedure is normally loaded via the command with(networks) but can also be referenced using the full name networks[chrompoly](...).
with⁡networks:
G≔complete⁡4:
chrompoly⁡G,x
x⁢x−1⁢x−2⁢x−3
chrompoly⁡G,3
0
chrompoly⁡G,4
24
addedge⁡1,1,2,G:
See Also
GraphTheory
GraphTheory[ChromaticPolynomial]
networks(deprecated)[acycpoly]
networks(deprecated)[spanpoly]
with
Download Help Document