prg_graph_edge_exists()
Abstract
Finds and returns an edge between two vertices if it exists.
Syntax
prg_graph_edge_exists (graph_ptr, vertex_a_ptr, vertex_b_ptr, edge_type)
| Argument | Type | Description |
|---|---|---|
graph_ptr |
PrgT_Graph * |
Graph that contains the edge in question |
vertex_a_ptr |
PrgT_Graph_Vertex * |
Source vertex for the edge |
vertex_b_ptr |
PrgT_Graph_Vertex * |
Destination vertex for the edge |
edge_type |
PrgT_Graph_Edge_Type | Type of edge to seek (one of the values in Table 4 Graph Package Symbolic Constants) |
Return Type
PrgT_Graph_Edge *
If found, returns the edge, otherwise returns PRGC_NIL
Header
prg_graph.h