dom-bfs

Allows you to do a breadth-first-search through DOM elements.

queuejs-bfs

A package to offer a built-in Queue data structure and Breadth First Search (BFS) method for traversing a graph for JavaScript applications.