Lines Matching refs:graph
3515 #define CV_TYPE_NAME_GRAPH "opencv-graph"*/
4471 *ptr = 0; // it's impossible now to release graph, so just clear the pointer
4494 const CvGraph* graph = (const CvGraph*)struct_ptr;
4502 assert( CV_IS_GRAPH(graph) );
4503 vtx_count = cvGraphGetVtxCount( graph );
4504 edge_count = cvGraphGetEdgeCount( graph );
4508 cvStartReadSeq( (CvSeq*)graph, &reader );
4509 for( i = 0, k = 0; i < graph->total; i++ )
4517 CV_NEXT_SEQ_ELEM( graph->elem_size, reader );
4523 sprintf( buf, "%08x", graph->flags );
4527 CV_CALL( vtx_dt = icvGetFormat( (CvSeq*)graph, "vertex_dt",
4533 CV_CALL( edge_dt = icvGetFormat( (CvSeq*)graph->edges, "edge_dt",
4539 CV_CALL( icvWriteHeaderData( fs, (CvSeq*)graph, &attr, sizeof(CvGraph) ));
4541 write_buf_size = MAX( 3*graph->elem_size, 1 << 16 );
4542 write_buf_size = MAX( 3*graph->edges->elem_size, write_buf_size );
4552 CvSet* data = k == 0 ? (CvSet*)graph : graph->edges;
4611 // final stage. restore the graph flags
4612 cvStartReadSeq( (CvSeq*)graph, &reader );
4614 for( i = 0; i < graph->total; i++ )
4618 CV_NEXT_SEQ_ELEM( graph->elem_size, reader );
4638 CvGraph* graph;
4666 CV_ERROR( CV_StsError, "Invalid graph signature" );
4699 "Graph edges should start with 2 integers and a float" );
4722 CV_CALL( graph = cvCreateGraph( flags, header_size, vtx_size, edge_size, fs->dststorage ));
4725 CV_CALL( cvReadRawData( fs, header_node, (char*)graph + sizeof(CvGraph), header_dt ));
4766 cvGraphAddVtx( graph, 0, &vtx );
4783 CV_CALL( result = cvGraphAddEdgeByPtr( graph,
4803 ptr = graph;
5045 /* reads matrix, image, sequence, graph etc. */
5074 /* writes matrix, image, sequence, graph etc. */