MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/PrimsAlgorithm.java:88–99  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

86 }
87
88 public static void main(String[] args)
89 {
90 MST t = new MST();
91 int graph[][] = new int[][] { { 0, 2, 0, 6, 0 },
92 { 2, 0, 3, 8, 5 },
93 { 0, 3, 0, 0, 7 },
94 { 6, 8, 0, 0, 9 },
95 { 0, 5, 7, 9, 0 } };
96
97 // Print the solution
98 t.primMST(graph);
99 }
100}
101// This code is contributed by Samrat Mitra

Callers

nothing calls this directly

Calls 1

primMSTMethod · 0.95

Tested by

no test coverage detected