`merge_vertices` returns an undirected graph, even if the input is directed. The output graph should be the same type of graph as the input.
Activity