strdiags.draw_boundaries
- class rewalt.strdiags.draw_boundaries(diagram, dim=None, **params)
Bases:
Given a diagram, generates the string diagram of its input and output boundaries of a given dimension, and draws them.
- Parameters
diagram (
diagrams.Diagram | shapes.Shape | shapes.ShapeMap) – A diagram or a shape or a shape map.dim (
int, optional) – Dimension of the boundary (default isdiagram.dim - 1).
- Keyword Arguments
*params – Passed to
StrDiag.draw().