Introduction - If you have any usage issues, please Google them yourself
Respectively adjacency matrix and adjacency list storage structure created map. Respectively graph depth-first traversal and breadth-first traversal. In the figure, the number of edges. Find graph vertex 0 to each of the remaining vertices of the shortest path