Implementation of the algorithm "Breadth First Search" to calculate the
bipartition of a graph.