Update igraph_to_undirected