Fix the order of the triangle list

I've confirmed that this commit's output matches the previous commit's
up to ordering.
This commit is contained in:
Aaron Fenyes 2025-09-29 17:12:24 -07:00
parent 5b331dbbee
commit a309870968
2 changed files with 181 additions and 181 deletions

View file

@ -18,8 +18,8 @@ def read_edge_distortions(filename):
def find_triangles(vertices, edges):
triangles = []
for e in edges:
for v in vertices:
for e in sorted(edges):
for v in sorted(vertices):
if e[1] < v:
if (e[0], v) in edges and (e[1], v) in edges:
triangles.append((e[0], e[1], v))