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

Function create_edge

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

Source from the content-addressed store, hash-verified

143
144
145def create_edge(nodes, edges):
146 rel_types = len(edges)
147 edge = edges[randint(0, rel_types - 1)]
148 query = create_edge_pattern(edge, nodes, "$map")
149 params = {"map": create_edge_map(edge, nodes)}
150 # TODO: create (n)-[new]->(new), (new)-[new]->(new)
151 return params, query
152
153
154def delete_node(nodes, edges):

Callers

nothing calls this directly

Calls 2

create_edge_patternFunction · 0.85
create_edge_mapFunction · 0.85

Tested by

no test coverage detected