A Comprehensive Guide to Graph Search in Python
A Graph is a data structure consisting of finite number of nodes (or vertices) and edges that connect them. The numbered circles are nodes with the lines connecting them being the edges. A pair (0,1) represents an edge that connects the nodes or vertices 0 and 1. Graphs are used to represent and solve many real life problems. For example, they can represent any network which could be social media like Facebook, LinkedIn etc. or Google maps. In graph search, we traverse or search the graph data structure from node to node. The easiest to understand example would be that of navigation maps like Google Maps.
Apr-30-2021, 21:30:32 GMT