This function first retrieves the association from each cell to any principal points, then builds a kNN graph for all cells and removes edges that connected between groups that disconnected in the corresponding principal graph and finally uses this kNN graph to calculate a global Moran's I and get the p-value
calculateLW(cds, k, neighbor_graph, reduction_method, verbose = FALSE)
The cell_data_set object where the neighbors list is calculated from
The maximum number of nearest neighbors to compute
A logic flag that determines whether or not to print execution details