prg_graph_vertex_insert()
摘要
创建一个顶点并将其插入图中
语法
prg_graph_vertex_insert (graph_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
graph_ptr |
PrgT_Graph * |
将创建该顶点的图 |
返回类型
PrgT_Graph_Vertex *
返回已创建并插入图中的顶点。若失败则返回 PRGC_NIL。
头文件
prg_graph.h
创建一个顶点并将其插入图中
prg_graph_vertex_insert (graph_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
graph_ptr |
PrgT_Graph * |
将创建该顶点的图 |
PrgT_Graph_Vertex *
返回已创建并插入图中的顶点。若失败则返回 PRGC_NIL。
prg_graph.h