()
| 58 | } |
| 59 | |
| 60 | func (e Edge) String() string { |
| 61 | if len(e.Properties) == 0 { |
| 62 | return "{}" |
| 63 | } |
| 64 | |
| 65 | p := make([]string, 0, len(e.Properties)) |
| 66 | for k, v := range e.Properties { |
| 67 | p = append(p, fmt.Sprintf("%s:%v", k, ToString(v))) |
| 68 | } |
| 69 | |
| 70 | s := fmt.Sprintf("{%s}", strings.Join(p, ",")) |
| 71 | return s |
| 72 | } |
| 73 | |
| 74 | func (e Edge) Encode() string { |
| 75 | s := []string{"(", e.Source.Alias, ")"} |
nothing calls this directly
no test coverage detected