()
| 25 | |
| 26 | |
| 27 | def empty_graph(): |
| 28 | global redis_graph |
| 29 | |
| 30 | redis_con = _brand_new_redis() |
| 31 | redis_graph = Graph(redis_con, "G") |
| 32 | |
| 33 | # Create a graph with a single node. |
| 34 | redis_graph.add_node(Node()) |
| 35 | redis_graph.commit() |
| 36 | |
| 37 | # Delete node to have an empty graph. |
| 38 | redis_graph.query("MATCH (n) DELETE n") |
| 39 | |
| 40 | |
| 41 | def any_graph(): |
no test coverage detected