Search Results for

    Show / Hide Table of Contents

    Class Graph

    Represents an oriented or unoriented weighted graph.

    Inheritance
    Object
    CVHandle
    Seq
    Set
    Graph
    Inherited Members
    Seq.Storage
    Seq.Kind
    Seq.ElementSize
    Seq.Count
    Seq.HPrev
    Seq.HNext
    Seq.VPrev
    Seq.VNext
    Seq.SetBlockSize(Int32)
    Seq.Push()
    Seq.Push<TElement>(TElement[])
    Seq.PushFront()
    Seq.PushFront<TElement>(TElement[])
    Seq.Pop()
    Seq.Pop<TElement>(TElement)
    Seq.Pop<TElement>(TElement[])
    Seq.PopFront()
    Seq.PopFront<TElement>(TElement)
    Seq.PopFront<TElement>(TElement[])
    Seq.Insert<TElement>(Int32, TElement)
    Seq.Insert(Int32, Seq)
    Seq.Insert(Int32, Arr)
    Seq.Remove(Int32)
    Seq.Remove(SeqSlice)
    Seq.GetElement(Int32)
    Seq.GetElementIndex(IntPtr)
    Seq.CopyTo<TElement>(TElement[])
    Seq.CopyTo<TElement>(TElement[], SeqSlice)
    Seq.ToArray<TElement>()
    Seq.Slice(SeqSlice, MemStorage, Boolean)
    Seq.Sort<TElement>(Comparison<TElement>)
    Seq.Search<TElement>(TElement, Comparison<TElement>, Boolean)
    Seq.Invert()
    Seq.Partition<TElement>(MemStorage, Seq, Func<TElement, TElement, Boolean>)
    Seq.ReleaseHandle()
    Namespace: OpenCV.Net
    Assembly: OpenCV.Net.dll
    Syntax
    public class Graph : Set

    Properties

    | Improve this Doc View Source

    EdgeCount

    Gets the total number of edges in the graph.

    Declaration
    public int EdgeCount { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    HeaderSize

    Gets the size of the Graph header, in bytes.

    Declaration
    public static int HeaderSize { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    VertexCount

    Gets the total number of vertices in the graph.

    Declaration
    public int VertexCount { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    Clear()

    Removes all vertices and edges from the graph.

    Declaration
    public override void Clear()
    Overrides
    Set.Clear()
    | Improve this Doc View Source

    Clone(MemStorage)

    Creates a full copy of the graph.

    Declaration
    public Graph Clone(MemStorage storage = null)
    Parameters
    Type Name Description
    MemStorage storage

    The destination MemStorage instance on which to store the new graph. If storage is null, the same memory storage of this graph is used.

    Returns
    Type Description
    Graph

    A new Graph instance that is a copy of this graph.

    | Improve this Doc View Source

    GetVertexDegree(Int32)

    Counts the number of edges incident to the vertex.

    Declaration
    public int GetVertexDegree(int index)
    Parameters
    Type Name Description
    Int32 index

    The index of the graph vertex.

    Returns
    Type Description
    Int32

    The number of edges incident to the vertex.

    | Improve this Doc View Source

    RemoveEdge(Int32, Int32)

    Removes an edge from the graph.

    Declaration
    public void RemoveEdge(int startIndex, int endIndex)
    Parameters
    Type Name Description
    Int32 startIndex

    The index of the starting vertex of the edge.

    Int32 endIndex

    The index of the ending vertex of the edge.

    | Improve this Doc View Source

    RemoveVertex(Int32)

    Removes a vertex from the graph.

    Declaration
    public int RemoveVertex(int index)
    Parameters
    Type Name Description
    Int32 index

    The index of the removed vertex.

    Returns
    Type Description
    Int32

    The number of edges deleted.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX