Add a BatchGraph constructor for just the graph and buffer size.