Skip to content

Commit

Permalink
Some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalpaudel committed Dec 31, 2023
1 parent 1aac960 commit 00ffa9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/searchViz/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

# SEARCH CONFIGURATION
# available options: dfs, bfs
SEARCH_METHOD = "dfs"
SEARCH_METHOD = "bfs"

GAME_MODE = SEARCH_MODE
ITERATION_RATE = 0
ITERATION_RATE = 10


# Graph configuration
Expand Down
2 changes: 1 addition & 1 deletion src/searchViz/graphViz/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def nodes_uniform(n: int) -> NDArray[float64]:
return random.uniform(0, length, n)

def nodes_gaussian(n: int) -> NDArray[float64]:
return random.normal(length / 2, length / 7, n)
return random.normal(length / 2, length / 5, n)
# return random.uniform(0, length, n)

return nodes_gaussian if model == "gaussian" else nodes_uniform
Expand Down
4 changes: 2 additions & 2 deletions src/searchViz/searchViz/Search.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def __init__(self, n: NodeCount | int, name: str):
self.open_ids, self.closed_ids = [], []

self.origin = array(SCR_SIZE) / 2
self.shift_effect = 1
self.shift_effect = 0
self.shifted_locs = zeros((self.N_num, 2))

self.avg_window = 10
self.avg_window = 20
self.shifted_effects = zeros((self.avg_window, 2))

def draw_graph(self, graph_surf) -> None:
Expand Down

0 comments on commit 00ffa9a

Please sign in to comment.