Skip to content

Commit

Permalink
Add Node.toString method
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Jul 10, 2023
1 parent c36a5c2 commit a1477a8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,9 @@ public void print(PrintStream out)
{
out.println("node " + coord + " lbl: " + label);
}

public String toString() {
return "Node(" + coord.x + ", " + coord.y + ")";
}

}

0 comments on commit a1477a8

Please sign in to comment.