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

Method populate_graph

tests/flow/test_procedures.py:27–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 self.populate_graph()
26
27 def populate_graph(self):
28 if redis_con.exists(GRAPH_ID):
29 return
30
31 edge = Edge(node1, 'goWellWith', node5)
32 redis_graph.add_node(node1)
33 redis_graph.add_node(node2)
34 redis_graph.add_node(node3)
35 redis_graph.add_node(node4)
36 redis_graph.add_node(node5)
37 redis_graph.add_edge(edge)
38 redis_graph.commit()
39
40 # Create full-text index.
41 create_fulltext_index(redis_graph, 'fruit', 'name', sync=True)
42
43 # Compares two nodes based on their properties.
44 def _compareNodes(self, a, b):

Callers 1

__init__Method · 0.95

Calls 2

create_fulltext_indexFunction · 0.85
EdgeClass · 0.50

Tested by

no test coverage detected