all done
finding if two nodes are connected
4.2, 4.3