--- title: Graph algorithms localeTitle: 图算法 --- ## 图算法 图算法是遍历(访问a)图的一组指令。 一些算法用于查找特定节点或两个给定节点之间的路径。 ### 为什么图算法很重要 图形是非常有用的数据结构,可以模拟各种问题。这些算法直接应用于社交网站,状态机建模等等。 ### 一些常见的图算法 一些最常见的图算法是: [图表](https://github.com/freecodecamp/guides/computer-science/data-structures/graphs/index.md) [广度优先搜索(BFS)](https://github.com/freecodecamp/guides/tree/master/src/pages/algorithms/graph-algorithms/breadth-first-search/index.md) [深度优先搜索(DFS)](https://github.com/freecodecamp/guides/tree/master/src/pages/algorithms/graph-algorithms/depth-first-search/index.md)