Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 54fb9f8

Browse filesBrowse files
committed
changes in Weighted Map Graph
1 parent db30f69 commit 54fb9f8
Copy full SHA for 54fb9f8

File tree

2 files changed

+1
-1
lines changed
Filter options

2 files changed

+1
-1
lines changed
Binary file not shown.

‎src/com/company/Lecture22/AdjMapWeightGraph.java

Copy file name to clipboardExpand all lines: src/com/company/Lecture22/AdjMapWeightGraph.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public Integer kruskal(){
3535
ArrayList<Edge> list = new ArrayList<Edge>();
3636
for(Vertex start : vertices.values()){
3737
for(Vertex end : start.neighbours.keySet()){
38-
Integer weight = start.neighbours.get(end.value);
38+
Integer weight = start.neighbours.get(end);
3939
list.add(new Edge(start, end, weight));
4040
}
4141
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.