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

Polish

parent 2f379783
No related branches found
No related tags found
No related merge requests found
...@@ -41,9 +41,9 @@ t0 = t1 ...@@ -41,9 +41,9 @@ t0 = t1
# Processing: # Processing:
# e_overestim is not used in this script but it useful to save it to # e_overestim is not used in this script but it is useful to save it
# the output graph of this script for further processing of the output # to the output graph of this script for further processing of the
# graph by other scripts: # output graph by other scripts:
g.graph_properties["e_overestim"] = g.new_graph_property("int") g.graph_properties["e_overestim"] = g.new_graph_property("int")
dir_edgelist = path.dirname(sys.argv[1]) dir_edgelist = path.dirname(sys.argv[1])
......
...@@ -37,8 +37,7 @@ if "cost_function" in g.edge_properties: ...@@ -37,8 +37,7 @@ if "cost_function" in g.edge_properties:
# Set closest_succ for all nodes: # Set closest_succ for all nodes:
for n in g.iter_vertices(): for n in g.iter_vertices():
all_cost = g.get_out_edges(n, all_cost = g.get_out_edges(n, eprops = [g.ep.cost_function])
eprops = [g.edge_properties.cost_function])
# numpy array with dtype float64 # numpy array with dtype float64
if all_cost.size == 0: if all_cost.size == 0:
......
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