Wrote the findDisconnectNode method