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

Method Idx

graph/dijkstra.go:21–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 return a.dist < b.(Item).dist
20}
21func (a Item) Idx() int {
22 return a.node
23}
24
25func (g *Graph) Dijkstra(start, end int) (int, bool) {
26 visited := make(map[int]bool)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected