scgl_edge_to_undirected changed