layout_graph_utils#

cluster_components(components)[source]#

Find the connected components of the cluster components

connect_sources(alignments, n_sources, source_to_index)[source]#

construct minimal tree to connect sources

get_color_ids(sources, n_sources, color_ids)[source]#
get_connected_components(alignments, n_sources, source_to_index=None)[source]#

determine connected components

get_graph(n_vertices, directed=False)[source]#
get_positions_from_tree(g, fixed_source, source_to_index, n_sources, ndim, pos_tree)[source]#

calculate positions from tree

graph_to_connected_components(g)[source]#