diff options
Diffstat (limited to 'networkx/algorithms/tests/test_planar_drawing.py')
-rw-r--r-- | networkx/algorithms/tests/test_planar_drawing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networkx/algorithms/tests/test_planar_drawing.py b/networkx/algorithms/tests/test_planar_drawing.py index 025e8229..af252b45 100644 --- a/networkx/algorithms/tests/test_planar_drawing.py +++ b/networkx/algorithms/tests/test_planar_drawing.py @@ -171,10 +171,10 @@ def check_edge_intersections(G, pos): # https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection px = (x1 * y2 - y1 * x2) * (x3 - x4) - (x1 - x2) * ( x3 * y4 - y3 * x4 - ) / float(determinant) + ) / determinant py = (x1 * y2 - y1 * x2) * (y3 - y4) - (y1 - y2) * ( x3 * y4 - y3 * x4 - ) / float(determinant) + ) / determinant # Check if intersection lies between the points if point_in_between(pos[a], pos[b], (px, py)) and point_in_between( |