PortFunc#

class tierkreis.builder.PortFunc[source]#

Bases: ABC

Magic for lazily creating nodes (and returning ports thereof).

Methods

resolve

Return a NodePort, creating nodes as necessary in source graph.

source_graph

The graph the port belongs to (or will).

abstract resolve() NodePort[source]#

Return a NodePort, creating nodes as necessary in source graph.

abstract source_graph() TierkreisGraph[source]#

The graph the port belongs to (or will).