Skip to content

methods

pleat.conway.methods

Shorthand methods on :class:GeometricHEG for chained Conway operators.

Importing this module attaches one method per factory in :mod:.factories to :class:GeometricHEG, enabling fluent chains like::

G.ambo().dual().truncate(0.4).dual()

Each method instantiates the operator with the factory parameters and applies it to the graph, forwarding the remaining keyword arguments to :meth:TopologicalConwayOperator.__call__. Like the operator call itself, each method leaves the input untouched and returns a new graph by default; pass inplace=True to mutate the graph and return it.

faces may be either a set of :class:Face or a callable face -> bool used as a face filter.

The shorthand methods are generated by :func:_shorthand from the factory functions. Each generated method gets a synthesized :class:inspect.Signature that combines the factory's parameters with the four standard :meth:TopologicalConwayOperator.__call__ kwargs, so help(G.truncate) and Jupyter's G.truncate? show the full signature.