Fixed graph.ListGraph#merge() and its tests.