aliby.track.utils.lol_to_adj

lol_to_adj(cell_ids)[source]

Convert a series list of lists with cell ids into a matrix representing a graph.

Note that information is lost in the process, and a matrix can’t be turned back into a list of list by itself.

input

Lol

list of lists with cell ids

returns

Adj_matrix

(n, n) ndarray where n is the number of cells