pd#

The planar diagram (PD) notation of a knotted structure is represented as an incidence list. See https://katlas.org/wiki/Planar_Diagrams.

Supported notation formats:
  • Mathematica: “Xp[1,9,2,8],Xn[3,10,4,11],X[5,3,6,2],X[7,1,8,13],X[9,4,10,5],X[11,7,12,6],P[12,13]”

  • KnotInfo: “[[1,5,2,4],[3,1,4,6],[5,3,6,2]]”

  • Topoly: “V[3,23];X[1,0,3,2];X[0,9,14,13];X[17,14,16,15];X[15,16,9,18];X[13,17,24,23];X[18,1,2,24]”

Node abbreviations:
  • V - vertex,

  • X - unsigned crossing,

  • Xp, + - positively signed crossing,

  • Xm, - - negatively signed crossing,

  • P, B - bivalent vertex,

Functions

from_pd_notation(text[, node_type, create_using])

Create planar diagram object from string containing the PD code.

to_pd_notation(k)

param k: