Path class
14 A B C D E F G H I
Create a class named Path in a new tab named Path
The Path class handles the link between two points, A and B.
Fields: iA, iB // index to each node
Constructor: Path( int i_A, int i_B) {...}
Simply copy arguments to fields.
Function:
void draw() {
int xA = ((Node)nodes.get(iA).x0;
...
draw a black line connecting (xA, yA) and (xB, yB)
} //draw