MCPcopy Create free account
hub / github.com/RedisGraph/redisgraph-go / EdgeNew

Function EdgeNew

edge.go:20–33  ·  view source on GitHub ↗
(relation string, srcNode *Node, destNode *Node, properties map[string]interface{})

Source from the content-addressed store, hash-verified

18}
19
20func EdgeNew(relation string, srcNode *Node, destNode *Node, properties map[string]interface{}) *Edge {
21 p := properties
22 if p == nil {
23 p = make(map[string]interface{})
24 }
25
26 return &Edge{
27 Relation: relation,
28 Source: srcNode,
29 Destination: destNode,
30 Properties: p,
31 graph: nil,
32 }
33}
34
35func (e *Edge) SetProperty(key string, value interface{}) {
36 e.Properties[key] = value

Callers 4

parseEdgeMethod · 0.85
createGraphFunction · 0.85
TestQueryStatisticsFunction · 0.85
TestNodeMapDatatypeFunction · 0.85

Calls

no outgoing calls

Tested by 3

createGraphFunction · 0.68
TestQueryStatisticsFunction · 0.68
TestNodeMapDatatypeFunction · 0.68