File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 1111import java .nio .file .Paths ;
1212import java .text .DecimalFormat ;
1313
14- /**
15- * Main class set to run the second version of the Prim algorithm NB: it needs
16- * to be executed passing the italian_dist_graph.csv file path as command line
17- * argument.
18- */
1914public class PrimUsageV2 {
2015
2116 private static final Charset ENCODING = StandardCharsets .UTF_8 ;
@@ -35,7 +30,7 @@ public static void main(String[] args) throws Exception {
3530 loadAllEntries (args [0 ], g );
3631 System .out .println ("Graph created" );
3732
38- Graph mst = Prim .mstPrim (g , "abbadia " , new MinComparator ());
33+ Graph mst = Prim .mstPrim (g , "A " , new MinComparator ());
3934 System .out .println ("Vertex count: " + mst .vertexCount ());
4035 System .out .println ("Edge count: " + mst .edgeCount ());
4136 DecimalFormat formatter = new DecimalFormat ("#0.000" );
You can’t perform that action at this time.
0 commit comments