wangmg0118 2014-11-20 12:16 采纳率: 0%
浏览 2114

如何用c++实现第k条最短路径的算法?

The shortest path problem can be defined for graphs whether undirected, directed, or mixed. It is defined here for undirected graphs; for directed graphs the definition of path requires that consecutive vertices be connected by an appropriate directed edge.
Two vertices are adjacent when they are both incident to a common edge. A path in an undirected graph is a sequence of vertices such that is adjacent to for . Such a path is called a path of length from to .

  • 写回答

2条回答 默认 最新

  • jiangzuzai 2014-11-20 12:32
    关注

    用dijkstra算法。

    评论

报告相同问题?