Skip to content

Commit 8386b4e

Browse files
committed
rename __relabel -> _relabel
1 parent 2ee4332 commit 8386b4e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/sage/matroids/basis_exchange_matroid.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cdef class BasisExchangeMatroid(Matroid):
1515
cdef _weak_invariant_var, _strong_invariant_var, _heuristic_invariant_var
1616
cdef SetSystem _weak_partition_var, _strong_partition_var, _heuristic_partition_var
1717

18-
cdef __relabel(self, l)
18+
cdef _relabel(self, l)
1919

2020
cdef _pack(self, bitset_t, X)
2121
cdef __unpack(self, bitset_t)

src/sage/matroids/basis_exchange_matroid.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ cdef class BasisExchangeMatroid(Matroid):
191191
bitset_free(self._output)
192192
bitset_free(self._temp)
193193

194-
cdef __relabel(self, l):
194+
cdef _relabel(self, l):
195195
"""
196196
Relabel each element `e` as `l[e]`, where `l` is a given injective map.
197197

src/sage/matroids/basis_matroid.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ cdef class BasisMatroid(BasisExchangeMatroid):
557557
558558
"""
559559
M = BasisMatroid(M=self)
560-
M.__relabel(l)
560+
M._relabel(l)
561561
return M
562562

563563
# enumeration

0 commit comments

Comments
 (0)