l1= [(1, 4), (1, 5), (2, 4), (3, 5)]
l2= [(3, 5), (1, 4), (2, 3), (3, 4), (2, 5), (4, 5)]
I have two edge list and I want to compare the edges in the two list and form a vector of the form [1,1,0,0,0,0].This is formed by comparing the edges of l1 with l2 and if an edge is present in l2 then 1 otherwise 0.The thing to ensure is that if the edge in the edge list is in the form (1,4) in l1 and (4,1) is present in l2 then also it should treat it as found.
edit-In the real dataset the vector size is in the range of 100,000