DependencyGraph: initial implementation