# SelectGraphViewFromWindow(GraphViewEditorWindow, GraphView, int)

> Associate a GraphView, from a GraphViewEditorWindow, to this tool window.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.5/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

```csharp
public void SelectGraphViewFromWindow(GraphViewEditorWindow window, GraphView graphView, int graphViewIndexInWindow = 0)
```

### Parameters

**** (\[GraphViewEditorWindow]\(/engine/6000.5/script-reference/unityeditor/experimental/graphview/graphvieweditorwindow)): The window containing the GraphView.**** (\[GraphView]\(/engine/6000.5/script-reference/unityeditor/experimental/graphview/graphview)): The GraphView.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the GraphView in the window (defaults to 0).
