Move GraphToDSCompiler to Legacy folder

Based on the comment in pull request #2839, this pull request moves ``GraphToDSCompiler`` project from ``src/Engine`` folder to ``src/Legacy`` folder.