Skip to content

Commit 0ec87e8

Browse files
committed
Corrected more comment typos
1 parent dfc4ba5 commit 0ec87e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/graphs/secondversion/Prim.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class Prim {
2929
* @throws NoSuchElementException if the starting vertex is not contained
3030
* in the graph
3131
*/
32+
@SuppressWarnings({ "rawtypes", "unchecked" })
3233
public static <V> Graph mstPrim(Graph<V> g, V startVertex, Comparator comparator)
3334
throws IllegalArgumentException, UnsupportedOperationException, NoSuchElementException {
3435

@@ -42,7 +43,7 @@ public static <V> Graph mstPrim(Graph<V> g, V startVertex, Comparator comparator
4243
LinkedList<V> allVertex = g.getAllVertex();
4344
Graph<V> result = new Graph(false);
4445

45-
// inializing the priority queue
46+
// initializing the priority queue
4647
Double[] prioritiesArr = new Double[allVertex.size()];
4748
Arrays.fill(prioritiesArr, Double.MAX_VALUE);
4849
ArrayList<Double> priorities = new ArrayList(Arrays.asList(prioritiesArr));

0 commit comments

Comments
 (0)