# QueryGraphOptimizationOptions

> Structure containing the different options used to optimize a query graph.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.Search](/engine/6000.5/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public struct QueryGraphOptimizationOptions
```

## Fields

| Value                                                                                                                                                        | Description                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| [propagateNotToLeaves](/engine/6000.5/script-reference/unityeditor/search/querygraphoptimizationoptions/propagatenottoleaves.md)                             | Propagate "Not" operations to leaves, so only leaves can have "Not" operations as parents.                                            |
| [swapFilterFunctionsToRightHandSide](/engine/6000.5/script-reference/unityeditor/search/querygraphoptimizationoptions/swapfilterfunctionstorighthandside.md) | Swaps filter functions to the right-hand side of combining operations (i.e. "And", "Or"). Useful if those filter operations are slow. |
| [swapNotToRightHandSide](/engine/6000.5/script-reference/unityeditor/search/querygraphoptimizationoptions/swapnottorighthandside.md)                         | Swaps "Not" operations to the right-hand side of combining operations (i.e. "And", "Or"). Useful if a "Not" operation is slow.        |
