Aller au contenu principal

Graph

Category: Control
Node id: graph

Executes a DAG (Directed Acyclic Graph) of operations defined by nodes and edges

What it does​

  • DAG (Directed Acyclic Graph) execution of operations
  • Flexible node-and-edge graph structure definition
  • Topological ordering for dependency-aware execution
  • Support for complex branching and merging workflows

Use cases​

  • Modeling complex clinical workflows with branching logic
  • Building dynamic pipelines with conditional paths
  • Representing multi-step processes with shared dependencies

Runtime​

  • Performance tier: variable

Input ports​

NameTypeRequiredDescription
inputtextYesInitial input to the graph execution

Output ports​

NameTypeRequiredDescription
outputtextNoGraph execution result
node_countnumberNoNumber of nodes in the graph
edge_countnumberNoNumber of edges in the graph
statustextNoExecution status

Settings​

Basic​

SettingNameTypeRequiredDefaultAllowed valuesDescription
Graph DefinitiongraphjsonYesGraph structure with nodes and edges arrays

Errors​

CodeDescription
GRAPH_REQUIREDgraph configuration object is missing
NODES_REQUIREDGraph must have at least one node
INPUT_REQUIREDNo input was provided for graph execution
INVALID_EDGEEdge is missing source or target field

Runtime notes​

  • Current implementation is a placeholder — returns graph structure info without executing sub-nodes
  • Edges are optional; a graph with nodes but no edges still executes
  • output is a descriptive string, not structured data — downstream nodes should not parse it

See Build any workflow for how to put nodes together and Ports, types and data flow for how port types connect.

Quelque chose n'est pas clair ? Envoyez vos commentaires sur la documentation par courriel.