Conjugacy in right-angled Artin groups Look at Lemma 9 of https://arxiv.org/abs/0802.1771 for what you want.