Get the graphnodes at the currentscope

On re-executing the graph, the entrypoint (pc) needs to be determined by getting the list of graphnodes in scope.

Fixes: http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-5176

@ke-yu