Skip to content

Add EdgesWithRange/Source, PathsWithRange/Source, and Positive/NegativePath for graph inverse semigroups - #1217

Open
joe-dw wants to merge 19 commits into
semigroups:mainfrom
joe-dw:pathsWithSourceRange
Open

joe-dw wants to merge 19 commits into
semigroups:mainfrom
joe-dw:pathsWithSourceRange

Conversation

@joe-dw

@joe-dw joe-dw commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

This is a smaller version of PR #1204 containing only a few functions and the related documentation and tests.

@joe-dw
joe-dw marked this pull request as ready for review September 3, 2026 16:09
@james-d-mitchell james-d-mitchell changed the title A few GIS related functions Add EdgesWithRange/Source, PathsWithRange/Source, and Positive/NegativePath for graph inverse semigroups Sep 4, 2026

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @joe-dw, this is better, but still needs some improvements, and corrections. Please also try to have meaningful names for PRs in future, I edited this PR title to be more accurate, and possibly meaningful for future readers.

Comment thread doc/semigraph.xml Outdated
Comment thread doc/z-chap07.xml
Comment thread gap/semigroups/semigraph.gi
Comment thread gap/semigroups/semigraph.gi Outdated
Comment thread gap/semigroups/semigraph.gi Outdated
Comment thread doc/semigraph.xml
Comment thread gap/semigroups/semigraph.gi
Comment thread gap/semigroups/semigraph.gi Outdated
Comment thread gap/semigroups/semigraph.gi Outdated
Comment thread tst/standard/semigroups/semigraph.tst
joe-dw and others added 8 commits September 4, 2026 12:28
… behaviour of Paths/Edges with Source/Range to now return [] when given a non-vertex element
GAP 4.17 changes PreImagesSet: a generic method now checks that the
argument is a subset of the range and returns the preimage of its
intersection with the image. With that method, PreImagesSet no longer
signals an error for elements without preimages, which the tests
expect, and the error for elements outside the range changes.

Install a method for semigroup homomorphisms by images that performs
the range check with the package's own error message and otherwise
delegates to PreImagesElm, so behaviour is the same with all supported
GAP versions.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Comment thread gap/attributes/homomorph.gi
@joe-dw
joe-dw force-pushed the pathsWithSourceRange branch from 5555d23 to c46771e Compare September 9, 2026 11:45
@joe-dw

joe-dw commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

@james-d-mitchell

@joe-dw

joe-dw commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator Author

I'm going to change how EdgesWithRange/Source works actually, because there's no reason it can't work with infinite but finitely generated semigroups. Only PathsWithRange/Source
would need to fail. Will edit this and write some test cases

Comment thread doc/semigraph.xml Outdated
Comment thread gap/semigroups/semigraph.gi Outdated
Comment thread gap/semigroups/semigraph.gi Outdated

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.

3 participants