Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
product is back again, though not clear why
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpc5 committed Mar 7, 2016
1 parent e72d0a3 commit f1d1dff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/sage/combinat/cluster_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,24 @@ def upper_cluster(self):
"""
return [ beta for beta in self.cluster() if sum(beta) > 0 ]

def product_of_upper_cluster(self):
"""
Return the product of the upper cluster in reversed order.
EXAMPLES::
sage: C = ClusterComplex(['A', 2])
sage: for F in C: print F.product_of_upper_cluster().reduced_word()
[]
[2]
[1]
[1, 2]
[1, 2]
"""
W = self.parent().group()
return W.prod(W.reflections()[beta]
for beta in reversed(self.upper_cluster()))

class ClusterComplex(SubwordComplex):
r"""
Cluster complex (or generalized dual associahedron)
Expand Down

0 comments on commit f1d1dff

Please sign in to comment.