Step 1:Starting Prim's MST from node A. All key values set to ∞ except source (0).