MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / compareTo

Method compareTo

LabEnv/04Lab/Solver.java:32–34  ·  view source on GitHub ↗
(Node that)

Source from the content-addressed store, hash-verified

30 }
31
32 public int compareTo(Node that) {
33 return Integer.compare(this.manhattanScore, that.manhattanScore);
34 }
35 }
36
37 // find a solution to the initial board (using the A* algorithm)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected