From 014454564768ab07ce6a6103a4f6f5aa88da3e9d Mon Sep 17 00:00:00 2001 From: "niehues.mark@gmail.com" <niehues.mark@gmail.com> Date: Mon, 30 Mar 2020 18:25:53 +0200 Subject: [PATCH] minor --- evrouting/gasstation/routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evrouting/gasstation/routing.py b/evrouting/gasstation/routing.py index 2dc84ce..1566f21 100644 --- a/evrouting/gasstation/routing.py +++ b/evrouting/gasstation/routing.py @@ -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) -- GitLab