Contents:
generate_graph_from_labels()
Creates and returns the graph and dictionary {node: cluster_label}