unique ptrs for jobs and edges