edge_removed = True
while edge_removed:
    edge_removed = False
for clique in nx.find_cliques(GC):
    if len(clique) >= 3:
        GC.remove_edge(clique[0], clique[1])
edge_removed = True
break
Клики в питоне