Im not getting why we are adding 36,36
we already have the connection from other nos like 31,32…35 to 36 then why 36,36 is required
Im not getting why we are adding 36,36
we already have the connection from other nos like 31,32…35 to 36 then why 36,36 is required
this is because we are making directed edge and edge from 35 to 36 doesn’t means there is a edge from 36 to 35
hence graph doesn’t know 36 is a node so we have also have to add and edge 36 to 36
not clear pleasr can you elaborate
watch the video again
there firstly sir didn’t add an edge from 36 to 36
then in the output of all distance 36 is not present because graph didn’t know 36 is an edge
and then after adding 36 to 36 we get the output
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.