Ask Your Question

Revision history [back]

Here is how you could explore this question.

sage: DD = DyckWords(11)
sage: D = DD.an_element()
sage: D
[1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0]
sage: D.pretty_print(type="NE-SE")
/\/\/\/\/\/\/\/\/\/\/\

Documentation:

sage: D.pretty_print?

Source code:

sage: D.pretty_print??

We see that the source code calls self._repr_lattice() so we check out the documentation for this method:

sage: D._repr_lattice?

and the source code:

sage: D._repr_lattice??

and check if we can adapt it to other lattice paths.