create and search (depth-first or breadth-first) graphs in the browser