-
Notifications
You must be signed in to change notification settings - Fork 61
Implemented ^ operator for digraphs to delegate to OnDigraphs (issue #580) #876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Thanks for the PR! Some tests are failing here, and I think the key is that you've installed a method without first declaring the operation. The trick to fixing this is to go into |
|
@james-d-mitchell @mtorpey I’ve added tests for this issue. I had to adjust the formatting a few times since the GitHub checks were failing initially. The tests run correctly when I execute them manually, but I’m still getting a Just to confirm for the documentation, should I add it in |
I've commented directly on the line that's wrong, you're reporting the exact error you'd get if you typed
Yes @devansh2605 that's correct. |
|
Happy with this, while noting that this currently isn't documented. I'd suggest adding a paragraph in the |
wilfwilson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think it would be a nice idea to, in addition, as @mtorpey suggested, add a sentence to the documentation of OnDigraphs for a digraph and a perm, and for OnDigraphs for a digraph and a transformation, to say that OnDigraphs can be used via the \^ operator.
Resolves issue #580.
Edited
oper.gifile to allowD ^ p(digraph and permutation) andD ^ t(digraph and transformation) to callOnDigraphs(D, p)andOnDigraphs(D, t), respectively.