MCPcopy Create free account
hub / github.com/creatale/node-dv / cvGraphRemoveEdge

Function cvGraphRemoveEdge

deps/opencv/modules/core/src/datastructs.cpp:2891–2904  ·  view source on GitHub ↗

Remove the graph edge connecting two given vertices: */

Source from the content-addressed store, hash-verified

2889
2890/* Remove the graph edge connecting two given vertices: */
2891CV_IMPL void
2892cvGraphRemoveEdge( 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: */

Callers

nothing calls this directly

Calls 1

cvGraphRemoveEdgeByPtrFunction · 0.85

Tested by

no test coverage detected