findEdge method
Returns the edge whose first two coordinates are p0 and p1
@return the edge, if found
null
if the edge was not found
Implementation
Edge? findEdge(Coordinate p0, Coordinate p1) {
for (int i = 0; i < edges.length; i++) {
Edge e = edges[i] as Edge;
List<Coordinate> eCoord = e.getCoordinates();
if (p0.equals(eCoord[0]) && p1.equals(eCoord[1])) return e;
}
return null;
}