Lines Matching refs:idx2
136 int idx, idx2;
140 idx2 = idx * set_header->elem_size;
141 assert( set_header->array[idx2] == 0 );
142 set_header->array[idx2] = 1;
144 memcpy( set_header->array + idx2 + 1, elem, set_header->elem_size - 1 );
232 static void cvTsSimpleGraphAddEdge( CvTsSimpleGraph* graph, int idx1, int idx2, void* edge )
237 cvTsSimpleSetFind( graph->vtx, idx2 ));
241 int ofs = (idx1*graph->vtx->max_count + idx2)*graph->edge_size;
247 CV_SWAP( idx1, idx2, t );
252 static void cvTsSimpleGraphRemoveEdge( CvTsSimpleGraph* graph, int idx1, int idx2 )
257 cvTsSimpleSetFind( graph->vtx, idx2 ));
261 int ofs = (idx1*graph->vtx->max_count + idx2)*graph->edge_size;
264 CV_SWAP( idx1, idx2, t );
275 static char* cvTsSimpleGraphFindEdge( CvTsSimpleGraph* graph, int idx1, int idx2 )
278 cvTsSimpleGraphFindVertex( graph, idx2 ))
280 char* edge = graph->matrix + (idx1 * graph->vtx->max_count + idx2)*graph->edge_size;