Separated out construction of the inital label graph.