node_port

node_port#

Node and port classes for Hugr graphs.

Classes

Direction

Enum over port directions, INCOMING and OUTGOING.

InPort

Incoming port, defined by the node it belongs to and the port offset.

Node

Node in hierarchical Hugr graph, with globally unique index.

OutPort

Outgoing port, defined by the node it belongs to and the port offset.

ToNode

Protocol by any object that can be treated as a Node.

Wire

Protocol for objects that can provide a dataflow output port.