dfs.h
来自「掌握如何用C来实现各种算法」· C头文件 代码 · 共 36 行
H
36 行
/*****************************************************************************
* *
* -------------------------------- dfs.h --------------------------------- *
* *
*****************************************************************************/
#ifndef DFS_H
#define DFS_H
#include "graph.h"
#include "list.h"
/*****************************************************************************
* *
* Define a structure for vertices in depth-first search. *
* *
*****************************************************************************/
typedef struct DfsVertex_ {
void *data;
VertexColor color;
} DfsVertex;
/*****************************************************************************
* *
* --------------------------- Public Interface --------------------------- *
* *
*****************************************************************************/
int dfs(Graph *graph, List *ordered);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?