Grid-based graphs, linear realizations, and the Buratti-Horak-Rosa conjecture