Generate branch dependency graph.