Skip to content

Commit f4609f6

Browse files
committed
review comment
1 parent 79f8fe2 commit f4609f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/graphs/matchpoly.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ def matching_polynomial(G, complement=True, name=None):
216216

217217
cdef int i, j, d
218218
cdef fmpz_poly_t pol
219-
cdef nverts = G.num_verts()
219+
cdef int nverts = G.num_verts()
220220

221221
# Using Godsil's duality theorem when the graph is dense
222222

223223
if complement and G.density() > 0.5: # this cutoff could probably be tuned
224224
f_comp = matching_polynomial(G.complement()).list()
225225
f = x.parent().zero()
226-
for i in range(nverts / 2 + 1): # implicit floor
226+
for i in range(nverts // 2 + 1):
227227
j = nverts - 2 * i
228228
f += complete_poly(j) * f_comp[j] * (-1)**i
229229
return f

0 commit comments

Comments
 (0)