# GetGraphAssetPath(Graph)

> Retrieves the file path of the asset associated with the specified Graph.

## Definition

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

```csharp
public static string GetGraphAssetPath(Graph graph)
```

### Parameters

**** (\[Graph]\(/engine/6000.7/script-reference/unity/graphtoolkit/editor/graph)): The graph whose asset path you want to retrieve.

### Returns

| Type                                                           | Description            |
| -------------------------------------------------------------- | ---------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The asset's file path. |

### Remarks

Use this method to get the relative file path of the graph asset within the Unity project (for example, `"Assets/Graphs/MyGraph.mygraph"`). Do not use `AssetDatabase.GetAssetPath` with graph objects, as it will not return the correct result.
