Create reg_edges.pl