building board shape from graph