Primsalgo function is not working

please have a look

Hey @javadsalgo123

if (nc < oc) {
prims gp = map.get(nb);
gp.acq=rp.vname;// instead of gp.vname = rp.vname;
gp.cost = nc;

						heap.updatePriority(gp);

					}

You are printing some additional parts.
System.out.println(rp.vname);

			System.out.println(map.containsKey("A"));

System.out.println("~~~~~~~~~~~~~~");

System .out.println(map);
heap.display();
System.out.println("~~~~~~~~~~~~~~");

Every time I told you please watch the video again

still code is not working fine?


and i do watch videos multiple times and if the problem persists then i post a doubt!

@javadsalgo123
Generic heap ka code debug krna.

can’t find an issue?
code for heap!

Send me Complete Graph code,

here it is , code for prims algo start from line 364 :-

552 lines ka code :confused: client bhi send kro , input and output ka screenshot send kr na tumhara kya aa raha h


(console me upr wala graph displayed hai aur neeche prims se mst ka output hai)

Graph client ka bhi code send krdo

kuch pta chla bhaiya kha problem hai?

Graph ka code h
isme class Name graphs se Main kr rkha hu change kr lena


Generic heap

Generic Heap me problem tha and Graph me bhi

kya kya issue tha , please ek dffa btado brief me !
And i’m sorry if im crossing line but kya apka number mil skta hai , its easier to communicate via WhatsApp

@javadsalgo123
public int islarger(T t, T o) {
return t.compareTo(o);
}

graph me kya dikkt thi?

@javadsalgo123
graph sahi tha

thanks a lot bhaiya !!!

Please mark your doubts as resolved in your course’s. and rate full