Skip to content
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

Adding examples to the relations chapter #2219

Conversation

grouptheoryenthusiast
Copy link
Contributor

Responding to issue #1705 I have added some examples into the relations chapter.

In particular, have added examples into the gapdoc sections within relation.gd.

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

Of course there are many more things that could be tested, e.g. IsEquivalenceRelation, IsSymmetricBinaryRelation, etc., e.g. via

gap> IsSymmetricBinaryRelation(BinaryRelationOnPoints([[2],[1]]));
true
gap> IsSymmetricBinaryRelation(BinaryRelationOnPoints([[2],[2]]));
false

But of course one can always do more, so that's not a complaint at all :-).

Let's see what the CI tests and codecov report then!

## <Example><![CDATA[
## gap> r:=BinaryRelationByElements(Domain([1..3]),[Tuple([1,2]),Tuple([1,3])]);
## <general mapping: <object> -> <object> >
## ]]></Example>
## </Description>
## </ManSection>
Copy link
Member

Choose a reason for hiding this comment

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

How about also adding an example for EmptyBinaryRelation, e.g.

gap> EmptyBinaryRelation(3) = BinaryRelationOnPoints([ [], [], [] ]);
true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @fingolfin , thank you for the suggestion. I have now added this and also added Is Symmetric/Reflexive/Transitive BinaryRelation based on your comment above.
I've pushed these changes to this branch (as well as fixing a missing ;).

@ChrisJefferson ChrisJefferson merged commit 69dd4f7 into gap-system:master Mar 2, 2018
@fingolfin fingolfin added topic: documentation Issues and PRs related to documentation topic: tests issues or PRs related to tests release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes and removed release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Mar 2, 2018
@fingolfin fingolfin added the release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes label Jul 31, 2018
@fingolfin fingolfin added release notes: added PRs introducing changes that have since been mentioned in the release notes and removed release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: added PRs introducing changes that have since been mentioned in the release notes topic: documentation Issues and PRs related to documentation topic: tests issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants