From b498655318b7a390bb3c66e5429502668579ac19 Mon Sep 17 00:00:00 2001 From: Marcel Wack <63490664+Sequenzer@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:53:26 +0200 Subject: [PATCH] Update src/Combinatorics/Matroids/matroids.jl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lars Göttgens --- src/Combinatorics/Matroids/matroids.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Combinatorics/Matroids/matroids.jl b/src/Combinatorics/Matroids/matroids.jl index 43865ef13df7..9896006f7dbc 100644 --- a/src/Combinatorics/Matroids/matroids.jl +++ b/src/Combinatorics/Matroids/matroids.jl @@ -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