uple1[1][0]
new = []
for i in range(len(graph)):
    found_equal = False
for e in range(i, len(graph)):
    if edge_equal(graph[i], graph[e]):
        found_equal = True
break
if not found_equal:
    new.append(graph[i])
print(new)
Removing duplicate edges from graph in Python list