On the idempotent graph of a ring