Skip to content

Commit

Permalink
creating a more efficient groundset
Browse files Browse the repository at this point in the history
  • Loading branch information
lizzyflight committed Aug 2, 2023
1 parent 5de5c7a commit dfd655a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions oriented_matroids/circuit_oriented_matroid.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ def __init__(self, data, groundset=None, category=None):
if len(data[0]) < 3:
groundset = []
for X in circuits:
for el in X.groundset():
if el not in groundset:
groundset.append(el)
groundset = list(set(groundset+X.groundset()))
else:
groundset = circuits[0].groundset()
for X in circuits:
Expand Down

0 comments on commit dfd655a

Please sign in to comment.