grid in graphs