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

Polish

parent 468b10fb
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,8 @@ expanded_traj = [] # an element of expanded_traj is a trajectory,
# represented by a list of instantaneous eddies
if "cost_function" in g.edge_properties:
# Build my_subgraphs, a dictionary of nodes at each date:
my_subgraphs = {}
for v in g.vertices():
......@@ -109,6 +111,8 @@ if "cost_function" in g.edge_properties:
my_subgraphs[date_index] = [int(v)]
for date_index in sorted(my_subgraphs):
# Consider all outgoing edges at a given date:
edges = []
all_cost = []
......
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