# IGraphWindow

> Interface for editor windows that display and edit graphs.

## Definition

* **Type:** Interface
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public interface IGraphWindow
```

## Remarks

Graph Toolkit editor windows implement this interface to provide access to the graph being edited. Check if an EditorWindow implements this interface to access the graph.

## Properties

| Property                                                                                               | Description                                                   |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------- |
| [Graph](/engine/6000.7/script-reference/unity/graphtoolkit/editor/igraphwindow/graph.md)               | Gets the graph currently being edited in this window.         |
| [StateMachine](/engine/6000.7/script-reference/unity/graphtoolkit/editor/igraphwindow/statemachine.md) | Gets the state machine currently being edited in this window. |
