Network modeling of the evolution of permeability and dilatancy in compact rock