---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/orchestration/plan/functions/outgoing.md
---

# Function: outgoing()

```ts
function outgoing(
  view: RawPlanView | PlanGraphView,
  nodeId: string,
): PlanEdge[];
```

Defined in: [src/batteries/orchestration/plan.ts:125](https://github.com/NHTIO/ADK/blob/v1.20260906.0/src/src/batteries/orchestration/plan.ts#L125)

The edges leaving a node.

## Parameters

| Parameter | Type                                                                                                           | Description          |
| --------- | -------------------------------------------------------------------------------------------------------------- | -------------------- |
| `view`    | | [`RawPlanView`](../../types/interfaces/RawPlanView.md) | [`PlanGraphView`](../interfaces/PlanGraphView.md) | The graph to search. |
| `nodeId`  | `string`                                                                                                       | The source node id.  |

## Returns

[`PlanEdge`](../../types/interfaces/PlanEdge.md)\[]

Every edge whose `from` is `nodeId`, in view order.
