Graph is common data structure that represents the relationships between different entities using edges and vertices. The behavior of search algorithm can be changed by plugging in different data structures, such as using a stack yields depth-first search, and using a queue gives breadth-first search.
Continue reading