General question

In case of Prims algo., we will be using heap and hashmap, so do we have to write the whole code of Generic Heap here or is there any direct class or function which we can extend or call?

@apoorvsingh27
you can use inbuild priority queue