---
title: "removeEdge(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/shadergraph/removeedge(_:)"
---

# removeEdge(_:)

Removes an edge from the graph.

## Declaration

```swift
final func removeEdge(_ edge: ShaderGraph.Edge) throws
```

## Discussion

Discussion note: If the edge does not exist in the graph.
