Fix logic error in graph_clusters_expanding