Controllable topological edge mode in an optically excited exciton-polariton lattice