diff --git a/src/sage/graphs/graph.py b/src/sage/graphs/graph.py index 680e22e730a..12cc67a3c51 100644 --- a/src/sage/graphs/graph.py +++ b/src/sage/graphs/graph.py @@ -6551,13 +6551,9 @@ def _gomory_hu_tree(self, vertices, method="FF"): capacity = lambda label: label if label in RR else 1 # Small case, not really a problem ;-) - if self.order() == 1: - return self.copy() - - # There may be many vertices, though only one which is "real" if len(vertices) == 1: g = Graph() - g.add_vertex(vertices[0]) + g.add_vertices(vertices) return g # Take any two vertices