Reading the graph

A Markov random field has path graph X−Y−ZX-Y-Z. Which pair is conditionally independent given the third variable under the global Markov property, and which pairs are neighbours?

XX and ZZ are the non-adjacent pair, so the pairwise property says X⊥Z∣YX\perp Z\mid Y. The edges are X−YX-Y and Y−ZY-Z. The pairwise property does not say that an adjacent pair is conditionally independent given the remaining variable.