Batch build the graph so loading data is easier