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

Function create_node

tests/flow/random_graph.py:137–142  ·  view source on GitHub ↗
(nodes, edges)

Source from the content-addressed store, hash-verified

135
136
137def create_node(nodes, edges):
138 labels = len(nodes)
139 node = nodes[randint(0, labels - 1)]
140 query = create_node_pattern(node, "$map")
141 params = {"map": create_node_map(node, randint(100, 1000))}
142 return params, query
143
144
145def create_edge(nodes, edges):

Callers

nothing calls this directly

Calls 2

create_node_patternFunction · 0.85
create_node_mapFunction · 0.85

Tested by

no test coverage detected