networks(deprecated)/chrompoly - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : networks(deprecated)/chrompoly

networks

  

chrompoly

  

chromatic polynomial of an undirected graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

chrompoly(G, lambda)

Parameters

G

-

undirected graph or network

lambda

-

variable in chromatic poly (usually number of colors)

Description

• 

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](...).

Examples

Important: The networks package has been deprecated.  Use the superseding command GraphTheory[ChromaticPolynomial] instead.

withnetworks:

Gcomplete4:

chrompolyG,x

xx1x2x3

(1)

chrompolyG,3

0

(2)

chrompolyG,4

24

(3)

addedge1,1,2,G:

chrompolyG,x

0

(4)

See Also

GraphTheory

GraphTheory[ChromaticPolynomial]

networks(deprecated)[acycpoly]

networks(deprecated)[spanpoly]

with