MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / empty_graph

Function empty_graph

tests/tck/utils/graphs.py:27–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def 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
41def any_graph():

Callers 1

any_graphFunction · 0.85

Calls 4

GraphClass · 0.90
_brand_new_redisFunction · 0.85
NodeClass · 0.50
queryMethod · 0.45

Tested by

no test coverage detected