Deduplicate graph edges.

This commit is contained in:
Sergio Martínez Portela 2023-06-20 00:15:41 +02:00
parent dee465f6af
commit 9784f78f1c

View File

@ -93,7 +93,7 @@ def gen(headline_id, graph, doc_to_headline_remapping):
g = centered_graph g = centered_graph
with tempfile.NamedTemporaryFile(suffix='.dot', mode='wt') as f: with tempfile.NamedTemporaryFile(suffix='.dot', mode='wt') as f:
f.write('digraph {\n') f.write('strict digraph {\n')
f.write('maxiter=1000\n') f.write('maxiter=1000\n')
f.write('splines=curved\n') f.write('splines=curved\n')
# f.write('splines=spline\n') # Not supported with edges to cluster # f.write('splines=spline\n') # Not supported with edges to cluster