from_condensed_em_notation#

from_condensed_em_notation(data, separator=',', oriented=False)#

Parse condensed EM notation into a planar diagram.

Token format per node (CCW): <neighbor-letter><neighbor-position>.... Nodes are assigned in alphabetical order: a, b, c, …

Parameters:
  • data (str) – Condensed EM string.

  • separator (str) – Token separator used in the string (default: comma).

  • oriented (bool) – Whether to construct an oriented diagram (not implemented).

Returns:

PlanarDiagram – Parsed diagram.

Raises:
  • NotImplementedError – If oriented=True.

  • ValueError – For malformed tokens.

Return type:

PlanarDiagram