add _isNeedCompile to Graph. add comments.