Working Graph and optimization