MCPcopy Create free account
hub / github.com/google/pprof / AddToEdge

Method AddToEdge

internal/graph/graph.go:122–124  ·  view source on GitHub ↗

AddToEdge increases the weight of an edge between two nodes. If there isn't such an edge one is created.

(to *Node, v int64, residual, inline bool)

Source from the content-addressed store, hash-verified

120// AddToEdge increases the weight of an edge between two nodes. If
121// there isn't such an edge one is created.
122func (n *Node) AddToEdge(to *Node, v int64, residual, inline bool) {
123 n.AddToEdgeDiv(to, 0, v, residual, inline)
124}
125
126// AddToEdgeDiv increases the weight of an edge between two nodes. If
127// there isn't such an edge one is created.

Callers

nothing calls this directly

Calls 1

AddToEdgeDivMethod · 0.95

Tested by

no test coverage detected