modified make graph