matrix_from_edgelist function

Compute the adjacency matrix of a network from its edgelist