commit-graph: build graph from starting commits