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

missing files to last commit

parent 5ea6e001
No related branches found
No related tags found
No related merge requests found
from evrouting.charge import shortest_path
from .config import edge_case, get_graph
def test_shortest_path():
G = get_graph(edge_case)
path = shortest_path(
G,
s=edge_case['s'],
t=edge_case['t'],
b_0=edge_case['b_0'],
b_t=edge_case['b_t'],
U=edge_case['U']
)
assert path == [(0, 2), (1, 0), (2, 0)]
from evrouting.gasstation import shortest_path
from .config import edge_case, get_graph
def test_shortest_path():
G = get_graph(edge_case)
path = shortest_path(
G,
s=edge_case['s'],
t=edge_case['t'],
b_0=edge_case['b_0'],
b_t=edge_case['b_t'],
U=edge_case['U']
)
assert path == [(0, 4), (2, 0)]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment