Skip to content
Snippets Groups Projects
Commit 194c8f9d authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Polish

parent 8b202fae
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,8 @@ for edge in g.edges():
else:
# source is a continuation or root with one out
if trg.in_degree() > 1:
# if the current cf is the smallest
if current_cf <= min({g.ep.cost_function[e] for e in trg.in_edges()}):
if current_cf <= min({g.ep.cost_function[e]
for e in trg.in_edges()}):
g.vp.traj[trg] = g.vp.traj[src]
else:
g.vp.traj[trg] = g.vp.traj[src]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment