matrix_from_base function

Compute the adjacency matrix of a network from a database of movements records.