# QueryGraph(IQueryNode)

> Constructor. Creates a new query graph.

## Definition

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

```csharp
public QueryGraph(IQueryNode root)
```

### Parameters

**** (\[IQueryNode]\(/engine/6000.5/script-reference/unityeditor/search/iquerynode)): Root node of the graph.
