SPFA[模板]

1.存边:可用邻接表或是vector;

2.队列: 可用指针或是queue;

posted @ 2014-10-27 10:16  polebug  阅读(131)  评论(0)    收藏  举报