I'm brushing up the related work section of my master's dissertation, and it would be very useful to include some diagrams and code snippets from other articles on that section (and that section alone), to better help explain them. I go into some detail about what some articles propose and how it would relate to my own work, but I find it rather bland and quite hard to just explain them using words alone, since they all center around source code manipulation.
As you'd expect, they are all properly cited, but I am wondering if this is still unadvisable? Should I redraw these diagrams and rewrite this source code myself? Or should I just abstain from including them at all?