components#

Computes various decompositions of knotted objects, namely:

  • “link components” are connected components of a link, e.g. a knot has 1 link component, the Hopf link has 2 link components and the Borromean Link has 3 link components,

  • “disjoint components”: are the components that do not share a common node (crossing or vertex),

  • “connected sum components” are the factors of a composite knot diagram.

  • “strand” a strand is either a closed component or a path between

Functions

add_unknot_in_place(k)

Add unknot to k (in place).

cut_sets(k, order[, max_cut_sets])

Finds all k-cut of a graph.

disjoint_components(K)

disjoint_components_nodes(k)

disjoint_sum(*knots[, return_relabel_dicts, ...])

Return the disjoint sum, k[0] ⊔ k[1] ⊔ .

is_connected_sum(g)

Return True if g is a connected sum diagram and False otherwise.

is_connected_sum_third_order(g)

Return True if g is a 3rd order connected sum diagram and False otherwise.

link_components_endpoints(k)

Return a list of sets of endpoints belonging to the same link component.

number_of_disjoint_components(k)

number_of_link_components(k)

Return the number of link components.