public void testDirectedEdgeComparator() {
DirectedEdge d1 = new DirectedEdge(new Node(new Coordinate(0, 0)),
new Node(new Coordinate(10, 10)), new Coordinate(10, 10), true);
DirectedEdge d2 = new DirectedEdge(new Node(new Coordinate(0, 0)),
new Node(new Coordinate(20, 20)), new Coordinate(20, 20), false);
assertEquals(0, d2.compareTo(d1));
}
public void testDirectedEdgeToEdges() {
DirectedEdge d1 = new DirectedEdge(new Node(new Coordinate(0, 0)),
new Node(new Coordinate(10, 10)), new Coordinate(10, 10), true);