graph exercises