add edge toggle conditions for node toggle