An open API service indexing awesome lists of open source software.

https://github.com/oeljeklaus-you/tempgraphpath

时序图单源最短路径算法
https://github.com/oeljeklaus-you/tempgraphpath

bfs-algorithm dfs-algorithm graph-algorithms temporal-networks

Last synced: 2 months ago
JSON representation

时序图单源最短路径算法

Awesome Lists containing this project

README

        

# TempGraphPath
**时序图单源最短路径算法**
## 四种基本的单源最短路径
**最早抵达路径**:对于点u到v,如果存在一条u到v的路径且抵达v的时间最小,那么该路径为最早抵达路径。

**最短抵达路径**:对于点u到v,如果存在一条u到v的路径且抵达v用的跳数最小,那么该路径为最晚离开路径。

**最晚离开路径**:对于点u到v,如果存在一条u到v的路径且离开u的时间最大,那么该路径为最晚离开路径。

**最快抵达路径**:对于点u到v,如果存在一条u到v的路径且离开u的时间与抵达v的时间之差最小,那么该路径

为最晚离开路径。
## 时序图四种基本路径
![时序图](https://github.com/oeljeklaus-you/TempGraphPath/blob/master/temporalGraph.png)

现在假设边上的数字表示为出发时间,持续时间均为1.

一条时序路径如下:P = <(a,f,3,1),(f,i,5,1),(i,l,8,1)>,start(P) = 3, end(P) = 8+1 = 9, dura(P) = 9−3 = 6

and dist(P) = 1 + 1 + 1 = 3.

最早抵达路径为:min{end(P)},最短抵达路径:min{dist(P)},最快抵达路径:min{dura(P)},最晚离开路径:max{start(P)}.