Module bipartite

Module bipartite 

Source
Expand description

Bipartite check and 2-colouring via BFS.

Structs§

BipartitePartitions
Result of a bipartite check: the two colour partitions.

Functions§

is_bipartite
Checks whether the graph is bipartite and returns its 2-colouring.