Add max_clusters parameter to graph_clusters_expanding