exa.core.experiment.edge_coloring.bipartite_alg

Contents

exa.core.experiment.edge_coloring.bipartite_alg#

bipartite_alg(G, colors)#

Algorithm to create edge-coloring for a bipartite graph. Bottom of this page for reference: https://codeforces.com/blog/entry/21827.

Parameters:
  • G (MultiGraph)

  • colors (list[int])

Return type:

MultiGraph