NodeData#
- class hugr.hugr.base.NodeData(op: ~hugr.ops.Op, parent: ~hugr.hugr.node_port.Node | None, _num_inps: int = 0, _num_outs: int = 0, children: list[~hugr.hugr.node_port.Node] = <factory>, metadata: dict[str, ~typing.Any] = <factory>)[source]#
Bases:
object
Node weights in HUGR graph. Defined by an operation and parent node.
Methods
Attributes