convert from attributed edgelist to igraph format