add deps to graph constructor, sample builder method