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 |
The object isBipartite is a method function.