CumValue returns the inclusive value for this node, computing the mean if a divisor is available.
()
| 111 | // CumValue returns the inclusive value for this node, computing the |
| 112 | // mean if a divisor is available. |
| 113 | func (n *Node) CumValue() int64 { |
| 114 | if n.CumDiv == 0 { |
| 115 | return n.Cum |
| 116 | } |
| 117 | return n.Cum / n.CumDiv |
| 118 | } |
| 119 | |
| 120 | // AddToEdge increases the weight of an edge between two nodes. If |
| 121 | // there isn't such an edge one is created. |
nothing calls this directly
no outgoing calls
no test coverage detected