---
title: "link(with:)"
framework: ML Compute
role: symbol
role_heading: Instance Method
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: "mlcompute/mlcinferencegraph/link(with:)"
---

# link(with:)

Links the inference graphs you specify.

## Declaration

```swift
func link(with graphs: [MLCInferenceGraph]) -> Bool
```

## Parameters

- `graphs`: An array that contains the inference graphs.

## Return Value

Return Value true if the operation was successful.

## See Also

### Preparing Inference Graphs

- [addInputs(_:)](mlcompute/mlcinferencegraph/addinputs(_:).md)
- [addInputs(_:lossLabels:lossLabelWeights:)](mlcompute/mlcinferencegraph/addinputs(_:losslabels:losslabelweights:).md)
- [addOutputs(_:)](mlcompute/mlcinferencegraph/addoutputs(_:).md)
- [compile(options:device:)](mlcompute/mlcinferencegraph/compile(options:device:).md)
- [compile(options:device:inputTensors:inputTensorsData:)](mlcompute/mlcinferencegraph/compile(options:device:inputtensors:inputtensorsdata:).md)
- [MLCGraphCompilationOptions](mlcompute/mlcgraphcompilationoptions.md)
