Hello and welcome to the forum!
Have you thought about searching the forum a bit?
Also check out DiRoots Plugin, might already do what you want.
Good luck with your thesis!