added add_all_edges() method