DFS function struct. More...
#include <dag.h>
Data Fields | |
PF_VPVPCPI | BackVisit |
PF_VPVPCPI | FirstVisit |
PF_VPVPCPI | LastVisit |
PF_IVPCPI | Set |
DFS function struct.
The generic DFS functions:
All functions must be of the form:
<type> f(Dag_Vertex_t * v, char * d, int b)
where <type>=(int) in the case of `Set()' and <type>=(void) in all the other cases. `v' is the current vertex, `d' is a generic data reference, and `b' is set to the incoming edge annotation (if any). DFS beahaves differently according to the return value of `Set()': -1 forces visiting, 0 default behaviour (all nodes visited once and only once), 1 forces backtracking.
PF_VPVPCPI Dag_DfsFunctions_t::BackVisit |
PF_VPVPCPI Dag_DfsFunctions_t::FirstVisit |
PF_VPVPCPI Dag_DfsFunctions_t::LastVisit |
PF_IVPCPI Dag_DfsFunctions_t::Set |