The two-dimensional XY model is the first well-studied system with topological point defects. On the other hand, although topological line defects are common in three-dimensional systems, the evolution mechanism of line defects is not fully understood. The six domains in hexagonal manganites converge to vortex lines in three dimensions. Using phase-field simulations, we predicted that during the domain coarsening process, the vortex-line network undergoes three types of basic topological changes, i.e., vortex-line loop shrinking, coalescence, and splitting. It is shown that the vortex-antivortex annihilation controls the scaling dynamics.