KnottedDiagram class