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

minor

parent 805eeea4
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,6 @@ from evrouting.T import Node, SoC ...@@ -5,7 +5,6 @@ from evrouting.T import Node, SoC
from evrouting.graph_tools import ( from evrouting.graph_tools import (
CONSUMPTION_KEY, CONSUMPTION_KEY,
DISTANCE_KEY, DISTANCE_KEY,
CHARGING_COEFFICIENT_KEY,
consumption, consumption,
distance, distance,
charging_cofficient charging_cofficient
...@@ -72,6 +71,7 @@ def insert_final_node(t: Node, ...@@ -72,6 +71,7 @@ def insert_final_node(t: Node,
final_soc: SoC, final_soc: SoC,
dist: DistFunction = dijkstra dist: DistFunction = dijkstra
) -> nx.DiGraph: ) -> nx.DiGraph:
"""Insert terminal node into extended graph an create states and edges as necessary."""
for u in gas_stations: for u in gas_stations:
shortest_p = dist(graph_core, t, u, weight=CONSUMPTION_KEY) shortest_p = dist(graph_core, t, u, weight=CONSUMPTION_KEY)
w = fold_path(graph_core, shortest_p, 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