from_pd_notation#
- from_pd_notation(text: str, node_type=<class 'str'>, create_using=None, **attr)#
Create planar diagram object from string containing the PD code. Autodetect PD codes of formats: - Mathematica: “V[1,2,3], X[2,3,4,5]”, see https://knotinfo.math.indiana.edu/descriptions/pd_notation.html, - Knotinfo: “[[1,5,2,4],[3,1,4,6],[5,3,6,2]]”, see http://katlas.org/wiki/Planar_Diagrams.
- Parameters:
text – string containing the PD notation
node_type – int for nodes 0, 1, 2, or str for nodes “a”, “b”, …
create_using –
attr – additional attributes to assign to the planar diagram (name, framing, …)
- Returns:
planar diagram object