Skip to content

Commit

Permalink
Update src/Combinatorics/Matroids/matroids.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Lars Göttgens <[email protected]>
  • Loading branch information
Sequenzer and lgoettgens authored Sep 14, 2023
1 parent 07c40b0 commit b498655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Combinatorics/Matroids/matroids.jl
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,6 @@ Group([ (3,4), (1,2), (2,3) ])
```
"""
function automorphism_group(m::Matroid)
length(m) > 0 || throw(ArgumentError("The matroid should not be empty."))
@req length(m) > 0 "The matroid should not be empty."
rank(m) < 1 ? automorphism_group(dual_matroid(m)) : automorphism_group(IncidenceMatrix(bases(m));action=:on_cols)
end

0 comments on commit b498655

Please sign in to comment.