find_edge_coloring#
- iqm.qaoa.transpiler.sparse.edge_coloring.find_edge_coloring(input_graph)[source]#
This function finds an edge coloring for the given graph.
It iterates over the graph edges and colors each one using elaborate helper functions. It modifies
input_graph
by adding an attributecolor
to every edge, given by an integer number.