MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / Len

Method Len

graph/prim.go:14–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12type minEdge []Edge
13
14func (h minEdge) Len() int { return len(h) }
15func (h minEdge) Less(i, j int) bool { return h[i].Weight < h[j].Weight }
16func (h minEdge) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
17

Callers 1

PrimMSTMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected