Equivalence of zero entropy and the Liouville property for stationary random graphs