If there is no dependency of all jobs, it returns NULL. If there are dependencies,
it returns a list of three elements:
dep_mat:
a two column matrix containing dependencies from parents to children.
id2name:
a named vector containing mapping from job IDs to job names.
id2stat:
a named vector containing mapping from job IDs to job status.