JoinGraphComponents: Join Graph Components

View source: R/JoinGraphComponents.R

JoinGraphComponentsR Documentation

Join Graph Components

Description

In case the graph is not connected, join the components. This function updates the original adjacency matrix and returns a new object.

Usage

JoinGraphComponents(
  root_cell,
  adjacency_matrix,
  flat_distances,
  n_components,
  component_members
)

Arguments

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

Value

adjacency_matrix such that new edges between disconnected components have length 2


mkarikom/RSoptSC documentation built on May 10, 2023, 1:10 a.m.