Skip to contents

Abstract IR node.

Usage

Node(
  id = integer(0),
  parents = integer(0),
  grid = GridSpec(),
  role = character(0)
)

Arguments

id

Integer node id (assigned by graph_add()).

parents

Integer ids of parent nodes (may be empty).

grid

Output GridSpec of this node.

role

Optional semantic role tag (e.g. "mask", set by mask()). Pure metadata: never read by the planner or executors; surfaced by draw() and plan_view().

Value

A Node subclass instance.