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

removed bug and new methods in Poset #10065

Closed
stumpc5 opened this issue Oct 3, 2010 · 12 comments
Closed

removed bug and new methods in Poset #10065

stumpc5 opened this issue Oct 3, 2010 · 12 comments

Comments

@stumpc5
Copy link
Contributor

stumpc5 commented Oct 3, 2010

Poset.dual contained a bug:

P = Poset(([1,2],[[1,2]]))
Q = P.dual()
Q.show()
... AssertionError: `self` should be an acyclic graph

The patch contains the solution for this bug as well as new methods
is_lattice
is_isomorphic
is_selfdual
panyushev_complement
panyushev_orbits

CC: @saliola @fchapoton

Component: combinatorics

Keywords: poset, days30

Reviewer: Franco Saliola

Issue created by migration from https://trac.sagemath.org/ticket/10065

@fchapoton
Copy link
Contributor

comment:2

The procedure is_isomorphic has two problems :

  • one doctest is failing (see the report of the build bot). This is related to a deprecated use of size instead of cardinality, somewhere. Maybe we should correct this deprecated use first.

  • it fails on Lattices

P=Posets.PentagonPoset()
P.is_isomorphic(P)
ValueError: The input is not a finite poset.

Maybe this can be corrected by having a method is_isomorphic for Lattices which is inherited from Posets.

@fchapoton
Copy link
Contributor

comment:3

One more thing to be corrected :

The doc of !panyushev_orbits! is badly formatted. It does not display correctly in the notebook.

@stumpc5
Copy link
Contributor Author

stumpc5 commented Jan 18, 2011

comment:4

Replying to @fchapoton:

  • one doctest is failing (see the report of the build bot). This is related to a deprecated use of size instead of cardinality, somewhere. Maybe we should correct this deprecated use first.

I only updated the doctest - the size/cardinality is in generic_graph.py. I am in the process to make changes to the is_isomorphic method in there anyway. I will make this little change in that other patch.

  • it fails on Lattices
P=Posets.PentagonPoset()
P.is_isomorphic(P)
ValueError: The input is not a finite poset.

Maybe this can be corrected by having a method is_isomorphic for Lattices which is inherited from Posets.

This was just a minor mistake in the is_isomorphic method for Posets. I updated it.

The doc of panyushev_orbits is badly formatted. It does not display correctly in the notebook.

Done...

@stumpc5
Copy link
Contributor Author

stumpc5 commented Jan 26, 2011

comment:5

I uploaded a changed version of the patch containing a faster way to compute the Panyushev complement. Beside this, I didn't do any changes.

@fchapoton
Copy link
Contributor

comment:6

This last change makes some tests fail. See the shortlog by the buildbot.

@stumpc5
Copy link
Contributor Author

stumpc5 commented Jan 26, 2011

comment:7

Sorry Fred, I often forget to rebuild before making the test... if I didn't do more mistakes, it should work now.

@Franco: I also had to edit the patches

trac_6641-poset_antichains_backtracker.patch
addon_poset_antichains_backtracker-cs.patch

(and uploaded them to the combinat queue) for ticket #6641. Could you probably fold them and add them to your ticket? Thanks!

@stumpc5
Copy link
Contributor Author

stumpc5 commented Feb 22, 2011

@saliola
Copy link

saliola commented May 3, 2011

comment:8

These issues are addressed in #10998.

@saliola
Copy link

saliola commented May 5, 2011

Changed keywords from poset to poset, days30

@sagetrac-mariah
Copy link
Mannequin

sagetrac-mariah mannequin commented May 18, 2011

comment:10

If this is a sage-duplicate, then I believe this ticket can be closed.

@jdemeyer
Copy link

Changed author from Christian Stump to none

@jdemeyer
Copy link

Reviewer: Franco Saliola

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants