rearranged graph output