Skip to content

Commit c255d4b

Browse files
Saatvik RaosaatvikraoIITGN
authored andcommitted
fixing minor bugs
1 parent 8941758 commit c255d4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/graphs/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4997,8 +4997,8 @@ def minor(self, H, solver=None, verbose=0, induced=False, *, integrality_toleran
49974997
sage: for i in random.randint(10, 30):
49984998
....: g.add_edge(random.randint(0, 5), i)
49994999
sage: h = graphs.CycleGraph(5) # Create a graph with 5 vertices forming a C5 cycle
5000-
sage: L = g.minor(h, induced=True)
5001-
sage: gg = g.subgraph(flatten(L.values(), max_level = 1))
5000+
sage: L = g.minor(h, induced=True)
5001+
sage: gg = g.subgraph(flatten(L.values(), max_level = 1))
50025002
sage: _ = [gg.merge_vertices(l) for l in L.values() if len(l)>1]
50035003
sage: gg.is_isomorphic(h)
50045004
True

0 commit comments

Comments
 (0)