Remove the graph edge connecting two given vertices: */
| 2889 | |
| 2890 | /* Remove the graph edge connecting two given vertices: */ |
| 2891 | CV_IMPL void |
| 2892 | cvGraphRemoveEdge( CvGraph* graph, int start_idx, int end_idx ) |
| 2893 | { |
| 2894 | CvGraphVtx *start_vtx; |
| 2895 | CvGraphVtx *end_vtx; |
| 2896 | |
| 2897 | if( !graph ) |
| 2898 | CV_Error( CV_StsNullPtr, "" ); |
| 2899 | |
| 2900 | start_vtx = cvGetGraphVtx( graph, start_idx ); |
| 2901 | end_vtx = cvGetGraphVtx( graph, end_idx ); |
| 2902 | |
| 2903 | cvGraphRemoveEdgeByPtr( graph, start_vtx, end_vtx ); |
| 2904 | } |
| 2905 | |
| 2906 | |
| 2907 | /* Count number of edges incident to a given vertex: */ |
nothing calls this directly
no test coverage detected