control whether nodes are connected