(relation string, srcNode *Node, destNode *Node, properties map[string]interface{})
| 18 | } |
| 19 | |
| 20 | func 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 | |
| 35 | func (e *Edge) SetProperty(key string, value interface{}) { |
| 36 | e.Properties[key] = value |
no outgoing calls