@staticmethod
def equal_lines(line0, line1):
    """ Returns True if line0 and line1 are equivalent, else False.

        'line0' and 'line1' are line segments of form [x0,y0,x1,y1].

        Edge.equal_lines(np.arr[float(x4)], np.arr[float(x4)]) -> bool

        """
    p0, p1 = line0.reshape((2, 2))
    p0 = list(p0)
    p1 = list(p1)
    p2, p3 = line1.reshape((2, 2))
    p2 = list(p2)
    p3 = list(p3)
    return p0 == p2 and p1 == p3 or p0 == p3 and p1 == p2
