adding weights != infinity if there is a direct edge between the 2 nodes
adding weights != infinity if there is a direct edge between the 2 nodes

nclandrei/Palgo,nclandrei/Algorithm-Animator,nclandrei/Palgo,nclandrei/Algorithm-Animator