update graph names and update graph path in lyx files