Make Graph Function