Generates grid shaped graphs