Lines Matching defs:start_vtx

3033                       const CvGraphVtx* start_vtx,
3043 if( !graph || !start_vtx || !end_vtx )
3046 if( start_vtx == end_vtx )
3050 (start_vtx->flags & CV_SET_ELEM_IDX_MASK) > (end_vtx->flags & CV_SET_ELEM_IDX_MASK) )
3053 CV_SWAP( start_vtx, end_vtx, t );
3056 edge = start_vtx->first;
3059 ofs = start_vtx == edge->vtx[1];
3060 assert( ofs == 1 || start_vtx == edge->vtx[0] );
3076 CvGraphVtx *start_vtx;
3086 start_vtx = cvGetGraphVtx( graph, start_idx );
3089 edge = cvFindGraphEdgeByPtr( graph, start_vtx, end_vtx );
3103 CvGraphVtx* start_vtx, CvGraphVtx* end_vtx,
3120 (start_vtx->flags & CV_SET_ELEM_IDX_MASK) > (end_vtx->flags & CV_SET_ELEM_IDX_MASK) )
3123 CV_SWAP( start_vtx, end_vtx, t );
3126 CV_CALL( edge = cvFindGraphEdgeByPtr( graph, start_vtx, end_vtx ));
3133 if( start_vtx == end_vtx )
3134 CV_ERROR( start_vtx ? CV_StsBadArg : CV_StsNullPtr,
3140 edge->vtx[0] = start_vtx;
3142 edge->next[0] = start_vtx->first;
3144 start_vtx->first = end_vtx->first = edge;
3180 CvGraphVtx *start_vtx;
3191 start_vtx = cvGetGraphVtx( graph, start_idx );
3194 result = cvGraphAddEdgeByPtr( graph, start_vtx, end_vtx, _edge, _inserted_edge );
3204 cvGraphRemoveEdgeByPtr( CvGraph* graph, CvGraphVtx* start_vtx, CvGraphVtx* end_vtx )
3213 if( !graph || !start_vtx || !end_vtx )
3216 if( start_vtx == end_vtx )
3220 (start_vtx->flags & CV_SET_ELEM_IDX_MASK) > (end_vtx->flags & CV_SET_ELEM_IDX_MASK) )
3223 CV_SWAP( start_vtx, end_vtx, t );
3226 for( ofs = prev_ofs = 0, prev_edge = 0, edge = start_vtx->first; edge != 0;
3229 ofs = start_vtx == edge->vtx[1];
3230 assert( ofs == 1 || start_vtx == edge->vtx[0] );
3242 start_vtx->first = next_edge;
3249 if( edge->vtx[0] == start_vtx )
3271 CvGraphVtx *start_vtx;
3281 start_vtx = cvGetGraphVtx( graph, start_idx );
3284 cvGraphRemoveEdgeByPtr( graph, start_vtx, end_vtx );