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

Rename `nl_cost_function` to `cost_function`

Rename property `nl_cost_function` to `cost_function`.
parent 44aa7346
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ g.vp['first_av_rad'] = g.new_vp('float')
g.vp['first_av_ros'] = g.new_vp('float')
g.vp['last_av_rad'] = g.new_vp('float')
g.vp['last_av_ros'] = g.new_vp('float')
g.ep['nl_cost_function'] = g.new_ep('float')
g.ep['cost_function'] = g.new_ep('float')
# Set up the list of SHPC:
......@@ -285,8 +285,7 @@ for edge in g.edges():
cf = math.sqrt(first_term + second_term + third_term)
# assign as weight to the edge
g.ep.nl_cost_function[edge] = cf
g.ep.cost_function[edge] = cf
t1 = time.perf_counter()
timings.write(f"iterating on edges: {t1 - t0} s\n")
......
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