In case the graph is not connected, join the components. This function updates the original adjacency matrix and returns a new object.
JoinGraphComponents( root_cell, adjacency_matrix, flat_distances, n_components, component_members )
| root_cell | the root cell of the lineage tree |
|---|---|
| adjacency_matrix | the graph embedding of the cells |
| flat_distances | the flattened embedding of the cells |
| n_components | the number of components |
| component_members | a list of vectors containing the cells in each component |
adjacency_matrix such that new edges between disconnected components have length 2