Two methods for constructing the effective lagrangian of gravitational bosons