************JAVA****************
ote Tell me what you want to do LAB 1 2 5 7 3 8 – Represent this weighted-graph as an adjacency matrix. Write code which can find 2 distinct spanning trees in this graph. Print these trees and their total weight of these trees. Write code to implement Prim’s algorithm for finding the minimum spanning tree (MST). Print the minimum spanning tree and its weight. – – Show transcribed image
OR
OR