Skip to content

Commit

Permalink
fixing minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Saatvik Rao authored and Saatvik Rao committed Oct 7, 2023
1 parent 256b954 commit 14aafcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/graphs/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -5007,8 +5007,8 @@ def minor(self, H, solver=None, verbose=0, induced=False, *, integrality_toleran
sage: for i in random.randint(10, 30):
....: g.add_edge(random.randint(0, 5), i)
sage: h = graphs.CycleGraph(5) # Create a graph with 5 vertices forming a C5 cycle
sage: L = g.minor(h, induced=True)
sage: gg = g.subgraph(flatten(L.values(), max_level = 1))
sage: L = g.minor(h, induced=True)
sage: gg = g.subgraph(flatten(L.values(), max_level = 1))
sage: _ = [gg.merge_vertices(l) for l in L.values() if len(l)>1]
sage: gg.is_isomorphic(h)
True
Expand Down

0 comments on commit 14aafcd

Please sign in to comment.