Opened 6 years ago

Last modified 5 years ago

#20495 closed enhancement

Add a function to generate random lattice (poset) — at Version 2

Reported by: jmantysalo Owned by:
Priority: major Milestone: sage-7.4
Component: combinatorics Keywords: latticeposet
Cc: tscrim, chapoton Merged in:
Authors: Jori Mäntysalo Reviewers:
Report Upstream: N/A Work issues:
Branch: u/jmantysalo/random-lattice (Commits, GitHub, GitLab) Commit: 60eff31087c3784f997ae2f49bd5150e676fad85
Dependencies: Stopgaps:

Status badges

Description (last modified by jmantysalo)

This patch will add a function to generate a random lattice with given number of elements.

Currently only "dismantlable" is implemented as a property. Is this a good desing from user perspective? I hope to later add for example "modular", but of course most combinations will always just raise NotImplemented?, as there are at least dozens of meaningful combinations that should be coded one by one.

I am not satisfied of this code, but at least it works and is quite fast.

Change History (2)

comment:1 Changed 5 years ago by jmantysalo

  • Branch set to u/jmantysalo/random-lattice

comment:2 Changed 5 years ago by jmantysalo

  • Authors set to Jori Mäntysalo
  • Cc tscrim chapoton added
  • Commit set to 60eff31087c3784f997ae2f49bd5150e676fad85
  • Description modified (diff)
  • Milestone changed from sage-wishlist to sage-7.4
  • Status changed from new to needs_review

New commits:

60eff31Add random lattice generation.
Note: See TracTickets for help on using tickets.