Skip to content

Commit 297a1ec

Browse files
committed
fix string representations of ClusterComplex and SubwordComplex
1 parent 66def0d commit 297a1ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sage/combinat/cluster_complex.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ def __init__(self, W, k, coxeter_element, algorithm):
223223
self._w0 = w
224224
self._k = k
225225
if k == 1:
226-
self._custom_name = 'Cluster complex'
226+
self._name = 'Cluster complex'
227227
else:
228-
self._custom_name = 'Multi-cluster complex'
228+
self._name = 'Multi-cluster complex'
229229

230230
self.set_immutable()
231231

@@ -271,7 +271,7 @@ def _repr_(self):
271271
sage: ClusterComplex(['A', 2])._repr_()
272272
"Cluster complex of type ['A', 2] with 5 vertices and 5 facets"
273273
"""
274-
name = self._custom_name
274+
name = self._name
275275
name += (' of type %s with %s vertices and %s facets'
276276
% (self.cartan_type(), len(self.vertices()),
277277
len(self._facets)))

src/sage/combinat/subword_complex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ def __init__(self, Q, w, algorithm="inductive"):
11311131
SimplicialComplex.__init__(self, maximal_faces=Fs,
11321132
maximality_check=False,
11331133
category=cat)
1134-
self._custom_name = 'Subword complex'
1134+
self._name = 'Subword complex'
11351135
self._W = W
11361136
try:
11371137
T = W.coxeter_matrix().coxeter_type()

0 commit comments

Comments
 (0)