format graph