MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Push

Method Push

graph/prim.go:18–20  ·  view source on GitHub ↗
(x interface{})

Source from the content-addressed store, hash-verified

16func (h minEdge) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
17
18func (h *minEdge) Push(x interface{}) {
19 *h = append(*h, x.(Edge))
20}
21
22func (h *minEdge) Pop() interface{} {
23 old := *h

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected