File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
from algorithms .heap_sort import heap_sort
11
11
12
12
# Miscellaneous Imports #
13
+ from random import randint
13
14
from rich .table import Table
14
15
from rich .console import Console
15
16
from animate_graph import camera
16
17
import matplotlib .pyplot as plt
17
- import random
18
18
19
19
20
20
arr_size : int = 30 # Size of the visualized array.
@@ -81,7 +81,7 @@ def main():
81
81
# Array Creation: Create array for visualization. #
82
82
arr .clear ()
83
83
for _ in range (arr_size ):
84
- arr .append (random . randint (0 , arr_size ))
84
+ arr .append (randint (0 , arr_size ))
85
85
86
86
# Algorithm Input Check: Check if the `algorithm_input` contains a valid algorithm, else quit. #
87
87
if algorithm_input in ALGORITHMS .keys ():
@@ -94,6 +94,7 @@ def main():
94
94
# Animate #
95
95
animation = camera .animate (interval = interval_time )
96
96
plt .show ()
97
+ main ()
97
98
98
99
99
100
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments