Newton Raphson Load Flow of a Power System with Transformers
In power flows a transformer can be modelled exactly the same as a line if the per unit system is used. Therefore you can safely model them as impedances.

Check out the page 21 (bracnhes modelling chapter) of the Matpower manual:
http://www.pserc.cornell.edu/matpower/manual.pdf