# LoadGraphForImporter<T>(string)

> Loads a fresh instance of the Graph of type T from disk for use in the asset import pipeline.

## Definition

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

```csharp
public static T LoadGraphForImporter<T>(string assetPath) where T : Graph
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path to the graph asset file.

### Returns

| Type | Description                                          |
| ---- | ---------------------------------------------------- |
| T    | A new instance of the graph read directly from disk. |

### Remarks

Use this method to load a [Graph](/engine/6000.5/script-reference/unity/graphtoolkit/editor/graph.md) instance from disk without referencing the in-memory version. This ensures consistent, deterministic behavior required by Unity’s asset import pipeline. This method is intended for importers, it bypasses any in-memory modifications that may have occurred. Unlike [GraphDatabase.LoadGraph](/engine/6000.5/script-reference/unity/graphtoolkit/editor/graphdatabase/loadgraph.md), this method always returns a clean copy of the graph as it exists on disk.
