Rename BuildSchedUnits to BuildSchedGraph, and refactor the