Topological dynamics of vortex-line networks in hexagonal manganites