Modified inner-find-connection to also search nodes with only one next-node.