CvCreateGraph Method (SeqType, Int32, Int32, CvMemStorage, Int32) OpenCvSharp Class Library
Creates empty graph

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

public static CvGraph CreateGraph(
	SeqType graphFlags,
	int vtxSize,
	int edgeSize,
	CvMemStorage storage,
	int headerSize
)

Parameters

graphFlags
Type: OpenCvSharpSeqType
Type of the created graph. Usually, it is either CV_SEQ_KIND_GRAPH for generic unoriented graphs and CV_SEQ_KIND_GRAPH | CV_GRAPH_FLAG_ORIENTED for generic oriented graphs.
vtxSize
Type: SystemInt32
Graph vertex size; the custom vertex structure must start with CvGraphVtx (use CV_GRAPH_VERTEX_FIELDS())
edgeSize
Type: SystemInt32
Graph edge size; the custom edge structure must start with CvGraphEdge (use CV_GRAPH_EDGE_FIELDS())
storage
Type: OpenCvSharpCvMemStorage
The graph container.
headerSize
Type: SystemInt32
Graph header size; may not be less than sizeof(CvGraph).

Return Value

Type: CvGraph
The function cvCreateGraph creates an empty graph and returns it.
See Also

Reference