Skip to content

Commit

Permalink
Integrate FlatsMatroid and redelete catalog files
Browse files Browse the repository at this point in the history
  • Loading branch information
gmou3 committed Sep 8, 2024
1 parent cb8cdc8 commit 4ee7649
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def dual(self):
sage: M = OrientedMatroid(A)
sage: m = M.matroid()
sage: m.dual()
Dual of 'Matroid of rank 2 on 3 elements'
Dual of 'Matroid of rank 2 on 3 elements with 5 flats'
sage: m.dual() is m
False
"""
Expand Down
7 changes: 0 additions & 7 deletions src/sage/matroids/oriented_matroids/catalog.py

This file was deleted.

17 changes: 5 additions & 12 deletions src/sage/matroids/oriented_matroids/covector_oriented_matroid.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,15 @@ def matroid(self):
Return the underlying matroid.
Given a covector oriented matroid, the *underlying matroid* is the
(flat) matroid whose collection of flats is given by the set of
zeros of all signed vectors.
*Note* that matroids as defined through flats are not defined in sage
version 9.2 and therefore it must be translated to another one of the
definitions.
Instead, we order our flats by inclusion; giving us a rank function and
use the rank function definition of matroid.
matroid whose collection of flats is given by the set of zeros of all
signed vectors.
EXAMPLES::
sage: from sage.matroids.oriented_matroids.oriented_matroid import OrientedMatroid
sage: C = [[1,1,1], [1,1,0], [1,1,-1], [1,0,-1], [1,-1,-1], [0,-1,-1],
....: [-1,-1,-1], [0,1,1], [-1,1,1], [-1,0,1], [-1,-1,1], [-1,-1,0],
....: [0,0,0]]
sage: C = [[1,1,1], [1,1,0], [1,1,-1], [1,0,-1], [1,-1,-1],
....: [0,-1,-1], [-1,-1,-1], [0,1,1], [-1,1,1], [-1,0,1],
....: [-1,-1,1], [-1,-1,0], [0,0,0]]
sage: M = OrientedMatroid(C, key='covector')
sage: M.matroid()
Matroid of rank 2 on 3 elements with 5 flats
Expand Down
11 changes: 0 additions & 11 deletions src/sage/matroids/oriented_matroids/oriented_matroids_catalog.py

This file was deleted.

0 comments on commit 4ee7649

Please sign in to comment.