em#
Modified EM (Ewing-Millett) notation.
The basic notation is given as a dictionary of nodes, where each node’s value is a list of tuples in CCW order representing the adjacent node and the position of the arc in the adjacent node. This notation should be used as a default notation, since it is the most similar to the native class structure.
Example:
The graph
C
/ A—B—D
is encoded by the notation {A:[(B,0),(C,1)], B:[(A,0),(D,0),(C,0)], C:[(B,2),(A,1)], D:[(B,1)]}, and the condensed notation is assuming lower case letters for nodes: “b0c1,a0d0c0,b2a1,b1”. In the case of knotted graphs, … In the case of oriented knots, …
See “Ewing, B. & Millett, K. C. in The mathematical heritage of CF Gauss 225–266 (World Scientific, 1991)”.
Functions
|
Convert a condensed EM string to a planar diagram. |
|
|
|
Return EM code of g as a condensed string. |
Returns EM code of planar diagram. |