首先是图的两种写法,给定int[][] edges

//邻接表



//邻接矩阵

Dijkstra是单源最短路径,表示某个节点i到其他节点k的距离

743. 网络延迟时间 - 力扣(LeetCode)

3112. 访问消失节点的最少时间 - 力扣(LeetCode)