utils#
In utils we store general functions that are not knot/graph specific.
Modules
Provides an in-memory dictionary-style cache for intermediate storage in KnotPy. |
|
Implements a fast, dependency-free algorithm for packing circles with prescribed tangencies. |
|
Provides a decorator to add total ordering to a class using a _compare method. |
|
Utility functions and classes for manipulating dictionaries in KnotPy. |
|
Disjoint Set Union (Union–Find). |
|
Library for (numerical) geometry. |
|
Utilities for manipulating (Laurent) polynomials with SymPy: - reciprocal transforms f(x) -> f(x^{-1}) - normalization for ordinary and Laurent polynomials - symmetric normalization under t ↔ 1/t - canonicalization under permutations of variables |
|
Lightweight parsers for KnotPy notations. |
|
Lightweight text progress bar for terminal loops, with tick() and multiprocessing support. |
|
Utilities for working with sets and layered (leveled) collections. |
|
String utilities for KnotPy. |
|