---
title: "contains(edge:)"
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/contains(edge:)"
---

# contains(edge:)

Returns whether the graph contains the given edge.

## Declaration

```swift
func contains(edge: ComputeNodeGraph.Edge) -> Bool
```

## Parameters

- `edge`: The edge to look up.

## Return Value

Return Value true if the graph contains the edge; otherwise, false.
