from_condensed_pd_notation#

from_condensed_pd_notation(text: str, node_type=<class 'str'>, oriented=False, **attr)#

Create planar diagram object from string containing the condensed PD code. The condensed pd code is, e.g. “abc bcde …”

Parameters:
  • text – string containing the PD notation

  • node_type – int for nodes 0, 1, 2, or str for nodes “a”, “b”, …

  • oriented

  • attr – additional attributes to assign to the planar diagram (name, framing, …)

Returns:

planar diagram object