Skip to content

Commit

Permalink
Make deletion test faster
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaligarmo committed Sep 8, 2024
1 parent 910f4d4 commit cb8cdc8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ def deletion(self, hyperplanes):
EXAMPLES::
sage: from sage.matroids.oriented_matroids.oriented_matroid import OrientedMatroid
sage: G = Graph({1: [2,4], 2: [3,4,5], 3: [4,6,8], 4: [7], 5: [8]})
sage: G = Graph({1: [2,4], 2: [3,4], 3: [4], 4:[]})
sage: A = hyperplane_arrangements.graphical(G)
sage: H = [A.hyperplanes()[i] for i in range(2, 5)]
sage: # long time
sage: M = OrientedMatroid(A); M
Hyperplane arrangement oriented matroid of rank 7
Hyperplane arrangement oriented matroid of rank 3
sage: M2 = M.deletion(H); M2
Hyperplane arrangement oriented matroid of rank 6
Hyperplane arrangement oriented matroid of rank 2
"""
A = self.arrangement()
if isinstance(hyperplanes, list) or isinstance(hyperplanes, tuple):
Expand Down

0 comments on commit cb8cdc8

Please sign in to comment.