re-using graph constructor in pr-graph