Complex sentence: They gave way to D.H.4s in 1917 and after the First World War to some D.H.9s.
Split into simpler sentences: They gave way to D.H.4s in 1917. After the First World War they acquired some D.H.9s.