If you play video at 09:19/34:42. It displays the code.
The condition which displays false should also check
!vtx2.nbrs.containsKey(vname1)
why we have not added this ??
If you play video at 09:19/34:42. It displays the code.
The condition which displays false should also check
!vtx2.nbrs.containsKey(vname1)
why we have not added this ??
Hey @connectrajanjain It is bcoz egde will be in the nbrs of both the vertexs so if you checked that it is not in vtx1 that means it can not be in vtx 2 also.