state_sum_yamada#

state_sum_yamada(k: PlanarDiagram)#

Calculate the Yamada polynomial states of a planar diagram by iteratively applying smoothing operations (remove crossings via “A”, “B”, and “X” state) on crossings and reducing the diagram step by step. Each state in the result is represented as a reduced diagram without crossings.

Args:
k (PlanarDiagram): The initial planar diagram for which the Yamada polynomial

states are to be calculated.

Returns:
list: A list of diagrams (states) obtained after all crossings have been

resolved through the application of specific Yamada smoothing methods.