Node reuse, instead of creating new ones?
问题 I'm trying to create (action)->(state) pair in such a way so that if : the action exists, use it, instead of creating new one the state exists, use it, instead of creating new one and do it in single query. The one I have creates new action node if the state is different, from previous calls. So I end up with multiple action nodes which are the same. query = "merge (:state {id:%s})-[:q {q:%s}]->(:action {id:%s})" % (state, 0, action) I use radis-graph. The only way is to use 3 queries instead