WeightValue returns the weight value for this edge, normalizing if a divisor is available.
()
| 283 | // WeightValue returns the weight value for this edge, normalizing if a |
| 284 | // divisor is available. |
| 285 | func (e *Edge) WeightValue() int64 { |
| 286 | if e.WeightDiv == 0 { |
| 287 | return e.Weight |
| 288 | } |
| 289 | return e.Weight / e.WeightDiv |
| 290 | } |
| 291 | |
| 292 | // Tag represent sample annotations |
| 293 | type Tag struct { |