mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-15 01:40:49 +08:00
Update and rename prim.java to PrimMST.java
This commit is contained in:
@ -5,7 +5,7 @@ import java.util.*;
|
|||||||
import java.lang.*;
|
import java.lang.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
|
||||||
class MST
|
class PrimMST
|
||||||
{
|
{
|
||||||
// Number of vertices in the graph
|
// Number of vertices in the graph
|
||||||
private static final int V=5;
|
private static final int V=5;
|
||||||
@ -113,4 +113,4 @@ class MST
|
|||||||
// Print the solution
|
// Print the solution
|
||||||
t.primMST(graph);
|
t.primMST(graph);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user