Copyable#

class tierkreis.builder.Copyable(src: NodePort | NodeRef | PortFunc)[source]#

Bases: PortFunc

Inserts a copy of an underlying ValueSource whenever an outgoing edge is added unless there are no existing uses of the underlying ValueSource (=> the wire is routed from the underlying ValueSource)

Methods

resolve

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

source_graph

The graph the port belongs to (or will).

Attributes

np

resolve() NodePort[source]#

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

source_graph() TierkreisGraph[source]#

The graph the port belongs to (or will).