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

Function create_edge_map

tests/flow/random_graph.py:56–63  ·  view source on GitHub ↗
(edge, nodes)

Source from the content-addressed store, hash-verified

54
55
56def create_edge_map(edge, nodes):
57 source = edge["source"]
58 source_count = nodes[source]["count"]
59 target = edge["target"]
60 target_count = nodes[target]["count"]
61 item = {"from": randint(1, source_count),
62 "to": randint(1, target_count)}
63 return item
64
65
66def create_nodes_range(node, map):

Callers 2

create_edge_rangeFunction · 0.85
create_edgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected