Change the edgelist to the infinity sparse matrix
edgelist2ISM(elist)
elist
the vector of the edges
the infinity sparse matrix object