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"Graph theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of vertices (also called nodes or points) which are connected by edges (also called links or lines). Graphs are one of the principal objects of study in discrete mathematics." ... from Wiki page.
Continue reading