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

Struct Edge

graph/kruskal.go:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15type Vertex int
16
17type Edge struct {
18 Start Vertex
19 End Vertex
20 Weight int
21}
22
23func KruskalMST(n int, edges []Edge) ([]Edge, int) {
24 // Initialize variables to store the minimum spanning tree and its total cost

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected