-
-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
747 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from sage.matroids.matroid cimport Matroid | ||
from sage.matroids.set_system cimport SetSystem | ||
|
||
cdef class CircuitsMatroid(Matroid): | ||
cdef frozenset _groundset # _E | ||
cdef int _matroid_rank # _R | ||
cdef SetSystem _C # circuits | ||
cdef dict _k_C # k-circuits (k=len) | ||
cdef bint _nsc_defined | ||
cpdef groundset(self) noexcept | ||
cpdef _rank(self, X) noexcept | ||
cpdef full_rank(self) noexcept | ||
cpdef _is_independent(self, F) noexcept | ||
cpdef _max_independent(self, F) noexcept | ||
cpdef _circuit(self, F) noexcept | ||
|
||
# enumeration | ||
cpdef bases(self) noexcept | ||
cpdef circuits(self, k=*) noexcept | ||
cpdef nonspanning_circuits(self) noexcept | ||
|
||
# properties | ||
cpdef girth(self) noexcept | ||
cpdef is_paving(self) noexcept | ||
|
||
# isomorphism | ||
cpdef _is_isomorphic(self, other, certificate=*) noexcept | ||
|
||
# verification | ||
cpdef is_valid(self) noexcept |
Oops, something went wrong.