Constructor GraphContext
GraphContext(GraphAsset, string[], DataPool, IDictionary<int, Args>, ExecutionProgress)
Creates a runtime execution context for a set of target nodes.
public GraphContext(GraphAsset graph, string[] nodeIds, DataPool pool = null, IDictionary<int, Args> args = null, ExecutionProgress progress = null)
Parameters
graphGraphAssetThe graph asset being executed.
nodeIdsstring[]The target node identifiers requested by the caller. The context expands these into the full dependency execution sequence.
poolDataPoolResource pool used to allocate and retain transient graph outputs.
argsIDictionary<int, Args>Request-wide execution arguments such as resolution, bounds, height scale, and seed.
progressExecutionProgressOptional progress object updated while the graph runs.
Exceptions
- RecursiveGraphReferenceException
Thrown when subgraph dependencies form a recursive graph reference chain.
- ArgumentException
Thrown when one of the requested node identifiers cannot be resolved to a node.