draw#

draw(k: PlanarDiagram, draw_circles: bool = False, with_labels: bool = False, with_title: bool = False, ax=None, **style_kwargs)#

Draw the planar diagram using the Matplotlib library.

Parameters:
  • k (PlanarDiagram) – A planar diagram to be drawn.

  • draw_circles – Determines whether circles defining positions are drawn. Default is False.

  • with_labels – Set to True for displaying node labels. Default is False.

  • with_title – Set to True for displaying the diagram title. Default is False.

  • style_kwargs – Additional keyword arguments for styling. Possible arguments are:

node-size (default: 100), node-color (default: black), arc-width (default: 1), arc-color (default: black), gap-width (default: 1), arrow-length (default: 1), arrow-width (default: 1), arrow-flow (default: 1), arrow-color (default: black). :return: None