implement couple of functions to make tree[s] from DAG of rpm dependencies in rpmkit.extras.depgraph