# Function executeGraph

- executeGraph(
  graph: CompiledGraph,
  initialInputs: Readonly<GraphState>,
  options?: GraphExecuteOptions,
  ): Promise<Result<GraphExecutionResult, Error>>

  Executes a compiled graph workflow.

  Uses a super-step model: each step finds all runnable nodes, executes them in parallel, merges state, then resolves edges to find the next set of runnable nodes.

  #### Parameters

  - graph: CompiledGraph
  - initialInputs: Readonly<GraphState>
  - `Optional` options: GraphExecuteOptions

  #### Returns Promise<Result<GraphExecutionResult, Error>>

  - Defined in packages/nexus-agents/src/orchestration/graph/graph-executor.ts:112