Any one knows different types of Prim's Algorithm Implementation.

i got the solution without google
one is through adjancy list and othe adj. matrix