---
title: "removeEdge(_:)"
framework: Compute Graph
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "computegraph/computenodegraph/removeedge(_:)"
---

# removeEdge(_:)

Removes an edge from the graph.

## Declaration

```swift
@discardableResult mutating func removeEdge(_ edge: ComputeNodeGraph.Edge) -> Bool
```

## Parameters

- `edge`: The edge to remove.

## Return Value

Return Value true if the edge was found and removed.

## Discussion

Discussion note: If the edge cannot be removed.
