chriswongtv / node-all-paths

JavaScript implementation to find all possible paths in a graph
MIT License
6 stars 3 forks source link

Fix an issue #3

Closed finn0 closed 6 years ago

finn0 commented 6 years ago

Related issue here I basically did two things:

  1. Prevent infinity loop when there are some closed path in a graph
  2. Add a variable depth that can limit the length of path searched in graph. Also I added an example in ./tests.

Gulp build not executed for that author may check the codes and build it later.

finn0 commented 6 years ago

Not fully tested, bugs found.