---
title: "merge(contentsOf:)"
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/library/merge(contentsof:)"
---

# merge(contentsOf:)

Merges nodes from specified library into this library.

## Declaration

```swift
final func merge(contentsOf library: ComputeNodeGraph.Library)
```

## Discussion

Discussion Use this method to merge libraries. If two nodes have the same name and bundle, the nodes in library will replace ones in self.
