---
title: new()
framework: metalperformanceshadersgraph
role: symbol
role_heading: Type Method
path: metalperformanceshadersgraph/mpsgraph/new()
---

# new()

Creates a new graph to insert nodes in.

## Declaration

```swift
class func new() -> Self
```
