Build a cell graph using blanacing of an extrenal distance matrix

mcell_add_cgraph_from_distmat(d_mat, graph_id, K, balance = F, k_expand = 10)

Arguments

d_mat

distance matrix, col and row names should be a super set of the non ignored cells for the matrix in mat_id

graph_id

new graph id to create

K

the guideline Knn parameter. The balanced will be constructed aiming at K edges per cell

balance

should balancing be performed (Default False)

k_expand

determine how much shoudl the K be expanded intially in order to find enough balanced neighbors.

mat_id

matrix object id