diff --git a/src/sage/graphs/matching_covered_graph.py b/src/sage/graphs/matching_covered_graph.py index 01b301c7034..2a9b8916c90 100644 --- a/src/sage/graphs/matching_covered_graph.py +++ b/src/sage/graphs/matching_covered_graph.py @@ -639,7 +639,6 @@ def __init__(self, data=None, matching=None, algorithm='Edmonds', Graph.__init__(self, data, *args, **kwds) success = True - elif isinstance(data, Graph): try: self._upgrade_from_graph(data=data, matching=matching,