next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Graphs :: isBipartite

isBipartite -- determines whether a graph is bipartite

Synopsis

Description

A graph is bipartite if it has a chromatic number less than or equal to 2.

i1 : G = graph({{0,1},{1,2},{2,4},{3,4},{4,5}},EntryMode=>"edges");
i2 : isBipartite G

o2 = true

See also

Ways to use isBipartite :

For the programmer

The object isBipartite is a method function.