Skip to content

gi-nx


gi-nx / addFlowDag

ts
function addFlowDag(dag: {
  dependencies: GiraffeNodeGraphFeatureDependancy[];
  description?: string;
  edges: GiraffeEdge[];
  id: string;
  inputs: Record<string, GiraffeNodeInputHandle>;
  name: string;
  nodes: GiraffeNode[];
  outputs: Record<string, GiraffeNodeInputHandle>;
  supportedShapes?: string[];
}): void;

Parameters

ParameterType
dag.dependenciesGiraffeNodeGraphFeatureDependancy[]
dag.description?string
dag.edgesGiraffeEdge[]
dag.idstring
dag.inputsRecord<string, GiraffeNodeInputHandle>
dag.namestring
dag.nodesGiraffeNode[]
dag.outputsRecord<string, GiraffeNodeInputHandle>
dag.supportedShapes?string[]

Returns

void

Deprecated

Use addFlow instead.