get_all_connected_nodes function

Get all nodes connected to a specified node