← Winnitude! Search  ·  Reader Mode (615 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 14 LINKS

Restructure BFS/tree.js by unfode · Pull Request #34 · algorithm-visualizer/algorithms

Repository navigation

Restructure BFS/tree.js - #34


Open
unfode wants to merge 1 commit into algorithm-visualizer:master from unfode:restructure-BFS-treejs
Open

Restructure BFS/tree.js #34 unfode wants to merge 1 commit into algorithm-visualizer:master from unfode:restructure-BFS-treejs

Conversation

unfode commented Apr 17, 2022



Copy link Copy Markdown

I made three changes:

  • Adding G to the parameter list of the BFS function
  • Adding JSDoc to the BFS function
  • Moving the tracer-related code into the BFS function

The restructured code behaves the same as the original code on https://algorithm-visualizer.org/ .

Restructure BFS/tree.js 3962826 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

1 participant