Add Nedges,change format