Skip to content

Commit

Permalink
Minor edits in DisjointSet
Browse files Browse the repository at this point in the history
  • Loading branch information
gmou3 committed Apr 25, 2024
1 parent 9575aee commit 8b73efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/sets/disjoint_set.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ cdef class DisjointSet_of_integers(DisjointSet_class):
.. NOTE::
This method performs input checks. To avoid them you may directly
use :meth:`~sage.groups.perm_gps.partn_ref.data_structures.OP_union`.
use :meth:`~sage.groups.perm_gps.partn_ref.data_structures.OP_join`.
"""
cdef int card = self._nodes.degree
if i < 0 or i >= card:
Expand Down Expand Up @@ -700,7 +700,7 @@ cdef class DisjointSet_of_hashables(DisjointSet_class):
sage: d.__getstate__()
[('a', 'a'), ('b', 'b'), ('c', 'd'), ('d', 'd'), ('e', 'e')]
"""
cdef Py_ssize_t card = self.cardinality()
cdef int card = self.cardinality()
cdef list l = [None] * card
cdef int i
for i in range(card):
Expand Down

0 comments on commit 8b73efd

Please sign in to comment.