Add linting to build, fix unchecked exceptions in Graph