changed is_alll_nodes_connected
#14 replace nodes contained by class with single node