arranging graph