CvGraphAddVtx Method (CvGraph, CvGraphVtx, CvGraphVtx) OpenCvSharp Class Library
Adds vertex to graph

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static int GraphAddVtx(
	CvGraph graph,
	CvGraphVtx vtx,
	out CvGraphVtx insertedVtx
)

Parameters

graph
Type: OpenCvSharpCvGraph
Graph.
vtx
Type: OpenCvSharpCvGraphVtx
Optional input argument used to initialize the added vertex (only user-defined fields beyond sizeof(CvGraphVtx) are copied).
insertedVtx
Type: OpenCvSharpCvGraphVtx
The address of the new vertex is written there.

Return Value

Type: Int32
The function cvGraphAddVtx adds a vertex to the graph and returns the vertex index.
See Also

Reference