Show Prim with heap runs in O((E+V) log V)

Analyze the show prim with heap runs in o((e+v) log v).

Examples
Input: "test_input_1"
Output: "output_1"
Hints

Show Prim with heap runs in O((E+V) log V)

Analyze the show prim with heap runs in o((e+v) log v).