Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac #16475: A useless case
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanncohen committed Mar 15, 2015
1 parent df60f70 commit 005e77c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sage/graphs/graph.py
Expand Up @@ -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
Expand Down

0 comments on commit 005e77c

Please sign in to comment.