fixed chromatic_index_critical graphs code