File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/cn/codepub/algorithms/graph Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
<artifactId >maven-compiler-plugin</artifactId >
15
15
<version >2.5.1</version >
16
16
<configuration >
17
- <source >1.8 </source >
18
- <target >1.8 </target >
17
+ <source >1.7 </source >
18
+ <target >1.7 </target >
19
19
</configuration >
20
20
</plugin >
21
21
</plugins >
Original file line number Diff line number Diff line change 4
4
import org .junit .Test ;
5
5
6
6
import java .util .*;
7
- import java .util .stream .Collectors ;
8
7
9
8
/**
10
9
* <p>
@@ -89,7 +88,8 @@ public int compare(Object o1, Object o2) {
89
88
});
90
89
91
90
// 加入优先级队列
92
- queue .addAll (edgeList .stream ().collect (Collectors .toList ()));
91
+ queue .addAll (edgeList );
92
+ // queue.addAll(edgeList.stream().collect(Collectors.toList()));
93
93
while (!queue .isEmpty ()) {
94
94
Edge remove = queue .remove ();
95
95
Vertex start = remove .start ;//获取起始点
You can’t perform that action at this time.
0 commit comments