Skip to content
Snippets Groups Projects
Commit 01445456 authored by markn92's avatar markn92
Browse files

minor

parent 805eeea4
Branches
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ from evrouting.T import Node, SoC
from evrouting.graph_tools import (
CONSUMPTION_KEY,
DISTANCE_KEY,
CHARGING_COEFFICIENT_KEY,
consumption,
distance,
charging_cofficient
......@@ -72,6 +71,7 @@ def insert_final_node(t: Node,
final_soc: SoC,
dist: DistFunction = dijkstra
) -> nx.DiGraph:
"""Insert terminal node into extended graph an create states and edges as necessary."""
for u in gas_stations:
shortest_p = dist(graph_core, t, u, weight=CONSUMPTION_KEY)
w = fold_path(graph_core, shortest_p, weight=CONSUMPTION_KEY)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment