Home | History | Annotate | Download | only in src

Lines Matching refs:end_vtx

3034                       const CvGraphVtx* end_vtx )
3043 if( !graph || !start_vtx || !end_vtx )
3046 if( start_vtx == end_vtx )
3050 end_vtx->flags & CV_SET_ELEM_IDX_MASK) )
3053 CV_SWAP( start_vtx, end_vtx, t );
3061 if( edge->vtx[1] == end_vtx )
3077 CvGraphVtx *end_vtx;
3087 end_vtx = cvGetGraphVtx( graph, end_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 )
3141 edge->vtx[1] = end_vtx;
3143 edge->next[1] = end_vtx->first;
3144 start_vtx->first = end_vtx->first = edge;
3181 CvGraphVtx *end_vtx;
3192 end_vtx = cvGetGraphVtx( graph, end_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 );
3231 if( edge->vtx[1] == end_vtx )
3244 for( ofs = prev_ofs = 0, prev_edge = 0, edge = end_vtx->first; edge != 0;
3247 ofs = end_vtx == edge->vtx[1];
3248 assert( ofs == 1 || end_vtx == edge->vtx[0] );
3259 end_vtx->first = next_edge;
3272 CvGraphVtx *end_vtx;
3282 end_vtx = cvGetGraphVtx( graph, end_idx );
3284 cvGraphRemoveEdgeByPtr( graph, start_vtx, end_vtx );