Lines Matching refs:vtx

2962 cvGraphRemoveVtxByPtr( CvGraph* graph, CvGraphVtx* vtx )
2970 if( !graph || !vtx )
2973 if( !CV_IS_SET_ELEM(vtx))
2979 CvGraphEdge *edge = vtx->first;
2982 cvGraphRemoveEdgeByPtr( graph, edge->vtx[0], edge->vtx[1] );
2985 cvSetRemoveByPtr( (CvSet*)graph, vtx );
2998 CvGraphVtx *vtx = 0;
3007 vtx = cvGetGraphVtx( graph, index );
3008 if( !vtx )
3014 CvGraphEdge *edge = vtx->first;
3019 cvGraphRemoveEdgeByPtr( graph, edge->vtx[0], edge->vtx[1] );
3022 cvSetRemoveByPtr( (CvSet*)graph, vtx );
3059 ofs = start_vtx == edge->vtx[1];
3060 assert( ofs == 1 || start_vtx == edge->vtx[0] );
3061 if( edge->vtx[1] == end_vtx )
3140 edge->vtx[0] = start_vtx;
3141 edge->vtx[1] = end_vtx;
3229 ofs = start_vtx == edge->vtx[1];
3230 assert( ofs == 1 || start_vtx == edge->vtx[0] );
3231 if( edge->vtx[1] == end_vtx )
3247 ofs = end_vtx == edge->vtx[1];
3248 assert( ofs == 1 || end_vtx == edge->vtx[0] );
3249 if( edge->vtx[0] == start_vtx )
3349 CvGraphVtx* vtx;
3448 cvCreateGraphScanner( CvGraph* graph, CvGraphVtx* vtx, int mask )
3467 scanner->vtx = vtx;
3468 scanner->index = vtx == 0 ? 0 : -1;
3526 CvGraphVtx* vtx;
3535 vtx = scanner->vtx;
3544 scanner->vtx = vtx = dst;
3545 edge = vtx->first;
3550 scanner->vtx = vtx;
3551 scanner->edge = vtx->first;
3560 dst = edge->vtx[vtx == edge->vtx[0]];
3565 if( !CV_IS_GRAPH_ORIENTED( scanner->graph ) || dst != edge->vtx[0] )
3571 item.vtx = vtx;
3574 vtx->flags |= CV_GRAPH_SEARCH_TREE_NODE_FLAG;
3581 scanner->vtx = vtx;
3601 scanner->vtx = vtx;
3618 edge = CV_NEXT_GRAPH_EDGE( edge, vtx );
3626 vtx = 0;
3632 vtx = item.vtx;
3633 vtx->flags &= ~CV_GRAPH_SEARCH_TREE_NODE_FLAG;
3639 scanner->vtx = vtx;
3641 scanner->dst = edge->vtx[vtx == edge->vtx[0]];
3648 if( !vtx )
3650 vtx = (CvGraphVtx*)icvSeqFindNextElem( (CvSeq*)(scanner->graph),
3654 if( !vtx )
3661 dst = vtx;
3666 scanner->vtx = 0;
3718 CvGraphVtx* vtx = (CvGraphVtx*)reader.ptr;
3720 CV_CALL( cvGraphAddVtx( result, vtx, &dstvtx ));
3721 flag_buffer[k] = dstvtx->flags = vtx->flags;
3722 vtx->flags = k;
3736 CvGraphVtx* new_org = ptr_buffer[edge->vtx[0]->flags];
3737 CvGraphVtx* new_dst = ptr_buffer[edge->vtx[1]->flags];
3750 CvGraphVtx* vtx = (CvGraphVtx*)reader.ptr;
3751 vtx->flags = flag_buffer[k++];