working on edgelist functionality