get_edgelist function

Convert data from interaction matrix to edgelist