Dumps dependencies of classes to a .tgf file.