Text this: Research on switch migration method based on minimum cost path