def commit_cypher_query(cypher_query): tr = Transaction(g) tr.run(cypher_query) tr.commit()
def commit_cypher_query_set(cypher_query_set): tr = Transaction(g) for cypher_query in cypher_query_set: tr.run(cypher_query) tr.commit()