Builtin Library
README.md
proc.graph
The graph data model and its definition entry: the nodes a graph holds, the normalized InputRef edges between
them, its inputs and outputs, and its JSON (de)serialization. Required as
@builtin::systems.procgen.proc.graph; the top-level proc module re-exports its entries as proc.define,
proc.graph(id) (new), proc.fromJSON and proc.op.
define(function(g) ... end) builds a graph in the call form, whose authoring surface is proc.builder: nodes
called by asset identity (g.points.disc({ ... })), inputs typed by their defaults (g:input), sockets that take
Luau's operators, members, columns and for, and the declarations a graph states about itself: g:describe (what it
makes), g:output (what it gives), g:family, g:timeline, g:still and g:cost. The result is a graph with
surface = "call" that records each node by the guid of the asset it calls.
refusedInput(graph, name, value) names why a value is not one an input holds. fromJSON(doc) reads a graph
document back and graph:toJSON() writes it.
Part of @builtin::systems.procgen.proc.