Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
12
type
minEdge []Edge
13
14
func
(h minEdge) Len() int {
return
len(h) }
15
func
(h minEdge) Less(i, j int) bool {
return
h[i].Weight < h[j].Weight }
16
func
(h minEdge) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
17
Callers
1
PrimMST
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected