to_knotpy_notation#
- to_knotpy_notation(k)#
Returns KnotPy notation of planar diagram (native python structures list, tuples, dicts,… encoding the whole diagram) Example:
“SpatialGraph {‘name’:’x1’,’color’:’red’} Vertex a [(‘b’,0,{‘color’:’Orange’})] {} Vertex b [(‘a’,0,{‘color’:’Orange’})] {}”