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

Class Edge

graph/kruskal.ts:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39export class Edge {
40 a: number = 0
41 b: number = 0
42 weight: number = 0
43 constructor(a: number, b: number, weight: number) {
44 this.a = a
45 this.b = b
46 this.weight = weight
47 }
48}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected