A shortest path algorithm of long-period cyclic fully connected layer graph based on Dijkstra algorithm