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

Strange behaviour with printed attributes #272

Closed
MTWhyte opened this issue Nov 6, 2019 · 1 comment
Closed

Strange behaviour with printed attributes #272

MTWhyte opened this issue Nov 6, 2019 · 1 comment
Assignees
Labels
bug A label for issues that are bugs resolved-pending-release A label for issues that have been resolved and that can be closed when a new version is released.

Comments

@MTWhyte
Copy link
Collaborator

MTWhyte commented Nov 6, 2019

I have come across the following unusual behaviour:

gap> G := CompleteBipartiteDigraph(4, 2);
<immutable complete bipartite digraph with bicomponent sizes 4 and 2>
gap> D := Digraph(OutNeighbours(G));
<immutable digraph with 6 vertices, 16 edges>
gap> D;
<immutable digraph with 6 vertices, 16 edges>
gap> IsCompleteDigraph(D);
false
gap> D;
<immutable complete digraph with 6 vertices>
gap> IsCompleteBipartiteDigraph(D);
true
gap> D;
<immutable complete digraph with 6 vertices>
gap> IsCompleteDigraph(D);
false

I think G here shouldn't have <immutable complete digraph with 6 vertices> printed below it, since it isn't a complete digraph. The order in which commands are run here seems to play a role, since the following seems like correct behaviour:

gap> G := CompleteBipartiteDigraph(4, 2);
<immutable complete bipartite digraph with bicomponent sizes 4 and 2>
gap> D := Digraph(OutNeighbours(G));
<immutable digraph with 6 vertices, 16 edges>
gap> IsCompleteBipartiteDigraph(D);
true
gap> D;
<immutable complete bipartite digraph with bicomponent sizes 4 and 2>
@wilfwilson
Copy link
Collaborator

Ah, thanks for spotting this. I know what’s going wrong and I’ll fix it soon.

@wilfwilson wilfwilson self-assigned this Nov 12, 2019
@wilfwilson wilfwilson added bug A label for issues that are bugs resolved-pending-merge A label for issues that are resolved in a PR that is not yet merged. labels Nov 12, 2019
@wilfwilson wilfwilson added resolved-pending-release A label for issues that have been resolved and that can be closed when a new version is released. and removed resolved-pending-merge A label for issues that are resolved in a PR that is not yet merged. labels Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A label for issues that are bugs resolved-pending-release A label for issues that have been resolved and that can be closed when a new version is released.
Projects
None yet
Development

No branches or pull requests

2 participants