ec_is_complete

Contents

ec_is_complete#

iqm.qaoa.transpiler.sparse.edge_coloring.ec_is_complete(graph)[source]#

Check that a graph’s edge coloring is complete.

Parameters:

graph (Graph) – A Graph whose edge coloring we want to check.

Returns:

True if every edge of the graph has an attribute color, False otherwise.

Return type:

bool