Hi Anne, hi Olivier,

First of all I wish both of you a fruitful and happy new year.

> Since I recently added a new patch to the sage-combinat queue
> 
> trac_12250-ktableaux-as.patch
> 
> your kshape-om.patch does not apply any longer since it also introduces a
> file k_tableau.py in /combinat. Perhaps you could rename that file in
> your patch?

Concerning the file k_tableau.py in our patch, it contains only the following
function: 

+def KYoungLattice(n, k):
+    from sage.combinat.all import Poset
+    from sage.graphs.all import DiGraph
+
+    g = DiGraph()
+    g.add_edge(Partition([1]), Partition([]))
+    
+    for height in range(1,n):
+        for part in Partitions(height, max_part=k):
+            part_k_conjugate = part.k_conjugate(k)
+            for next_part in part.up():
+                if max(next_part) > k:
+                    continue
+                if not next_part.k_conjugate(k).contains(part_k_conjugate):
+                    continue
+                g.add_edge(next_part, part)
+                
+    return Poset(g)

It was written before we started to work on k-shape (Marc is maybe the author)
and we don't use it at all. Anne: you probably will have some use for it and I
think it really belongs to k_tableau.py. So instead of renaming the file, I'd
rather removing it from kshape-om.patch and fold it in your patch. What do you
think ? If you are ok, I'll split our patch into to leaving to Anne to copy
this code in her file,

Cheers,

Florent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to