Removed old non-used graph-code and some unused imports.