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:
parent
5b331dbbee
commit
a309870968
2 changed files with 181 additions and 181 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue