Skip to content

Add IsDigraphRotationSystem - #954

Open
MeikeWeiss wants to merge 2 commits into
digraphs:mainfrom
MeikeWeiss:meike/isrotation
Open

MeikeWeiss wants to merge 2 commits into
digraphs:mainfrom
MeikeWeiss:meike/isrotation

Conversation

@MeikeWeiss

@MeikeWeiss MeikeWeiss commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

See Issue #869

@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.45%. Comparing base (f4fc1ac) to head (2c28541).

Files with missing lines Patch % Lines
gap/attr.gi 83.33% 4 Missing ⚠️

❌ Your patch check has failed because the patch coverage (84.00%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #954      +/-   ##
==========================================
- Coverage   97.47%   97.45%   -0.02%     
==========================================
  Files          51       51              
  Lines       21301    21316      +15     
  Branches      639      639              
==========================================
+ Hits        20763    20774      +11     
- Misses        473      477       +4     
  Partials       65       65              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@james-d-mitchell james-d-mitchell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MeikeWeiss, I thought I'd reviewed this already last week, but it looks like I forgot to hit the button. Here are some comments!

Comment thread doc/attr.xml
<Description>
If <A>digraph</A> is a symmetric digraph and <A>list</A> is a rotation system of <A>digraph</A>,
then <C>IsDigraphRotationSystem</C> returns <C>true</C> if <A>list</A> is a rotation system for
<A>digraph</A>, and <C>false</C> otherwise.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads a little strangely "if ... list is a rotation system, then ... returns true, if list is a rotation system" probably the first "rotation system" should be "list"

Comment thread doc/attr.xml
then <C>IsDigraphRotationSystem</C> returns <C>true</C> if <A>list</A> is a rotation system for
<A>digraph</A>, and <C>false</C> otherwise.
<A>list</A> is a rotation system of <A>digraph</A> if <A>list</A> has an entry for each vertex
<C>v</C> containing all neighbours of <C>v</C>.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you maybe add a little more detail here, I'm not sure I could identify when this function returns true and when it returns false from what you've written here.

Comment thread gap/attr.gi
InstallMethod(IsDigraphRotationSystem, "for a digraph and a list",
[IsDigraph, IsList],
function(digraph, rotationSystem)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Comment thread gap/attr.gi
Comment on lines +1865 to +1867
fi;

if Length(rotationSystem) <> DigraphNrVertices(digraph) then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fi;
if Length(rotationSystem) <> DigraphNrVertices(digraph) then
elif Length(rotationSystem) <> DigraphNrVertices(digraph) then

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants