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

Method new_node

tests/flow/test_index_updates.py:23–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 self.build_indices()
22
23 def new_node(self):
24 return Node(label = labels[node_ctr % 2],
25 properties = {'unique': node_ctr,
26 'group': random.choice(groups),
27 'doubleval': round(random.uniform(-1, 1), 2),
28 'intval': random.randint(1, 10000),
29 'stringval': ''.join(random.choice(string.ascii_lowercase) for x in range(6))})
30
31 def populate_graph(self):
32 global node_ctr

Callers 2

populate_graphMethod · 0.95
test03_node_creationMethod · 0.95

Calls 1

NodeClass · 0.50

Tested by

no test coverage detected