# DependencyGraph class

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class DependencyGraph
```

A graph representing the loaded portion of document dependencies.

## Methods

- [AllSources](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.dependencygraph/allsources.md): Enumerate over all sources of a specific target file.
- [AllTargets](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.dependencygraph/alltargets.md): Enumerate over all targets of a specific source file.
- [Connect](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.dependencygraph/connect.md): Create a causal connection between two files.
- [CreateGraph](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.dependencygraph/creategraph.md): Create a graph layout for the dependencies as recorded in this instance. This method is not thread-safe, you should not modify this instance while this method is running.
- [ShowGraphInWindow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.dependencygraph/showgraphinwindow.md): Create a dialog showing the dependency graph, with a layout stored in the given document.
