(String[] args)
| 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 |