If, after notice has been given by either party and a reasonable length of time has elapsed, the other party neglect or refuse to erect or cause to be erected, the one-half of such fence, the party giving notice may proceed to erect or cause to be erected the entire partition fence, and collect by law one-half of the cost thereof from the other party.