Add DependencyGraph for tracking method call dependencies