-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.py
24 lines (20 loc) · 1.5 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# graph tester
import graph
data = [(0.00, 21.15, 0.60, 0.00), (5.59, 20.71, 0.80, 39.41), (11.16, 18.84, 0.99, 57.84), (13.35, 17.07, 1.05, 57.46),(16.94, 15.13, 1.16, 60.17)]
capacity=5
head=20
graph.grapher(data, capacity, head)
# _ _
# / \ \"""\ /"""/ / \
# / \ \ \ / / / \
# / \ \ \ / / / \
# / _ \ \ \ / / / _ \
# / / \ \ \ \ / / / / \ \
# / / \ \ \ \ / / / / \ \
# / / \ \ \ \ / / / / \ \
# / """"""" \ \ \ / / / """"""" \
# / \ \ \ / / / \
# / /"""""""""\ \ \ \ / / / /""""""""""\ \
# / / \ \ \ V / / / \ \
# / / \ \ \ / / / \ \
# """"" """"" """"" """"" """"