We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3abe5a commit 58521e5Copy full SHA for 58521e5
src/sage/matroids/matroid.pyx
@@ -5986,8 +5986,8 @@ cdef class Matroid(SageObject):
5986
5987
EXAMPLES::
5988
5989
- sage: matroids.Uniform(5,5).girth()
5990
- inf
+ sage: matroids.Uniform(5, 5).girth()
+ +Infinity
5991
sage: matroids.catalog.K4().girth()
5992
3
5993
sage: matroids.catalog.Vamos().girth()
@@ -6002,7 +6002,8 @@ cdef class Matroid(SageObject):
6002
X = frozenset(X)
6003
if self._is_circuit(X):
6004
return k
6005
- return float('inf')
+ from sage.rings.infinity import infinity
6006
+ return infinity
6007
6008
# representability
6009
0 commit comments