Nevron Open Vision Documentation
Nevron.Nov.DataStructures Namespace / NGraphVertexDegreeComparer Class / Compare Method
The first graph vertex to be compared.
The second graph vertex to be compared.


In This Topic
    Compare Method (NGraphVertexDegreeComparer)
    In This Topic
    Returns -1 if obj1 degree is smaller than obj2 degree. Returns 1 if obj1 degree is larger than obj2 degree. Returns 0 if obj1 degree is equal to obj2 degree.
    Syntax
    'Declaration
     
    
    Public Function Compare( _
       ByVal v1 As NGraphVertex, _
       ByVal v2 As NGraphVertex _
    ) As System.Integer
    'Usage
     
    
    Dim instance As NGraphVertexDegreeComparer
    Dim v1 As NGraphVertex
    Dim v2 As NGraphVertex
    Dim value As System.Integer
     
    value = instance.Compare(v1, v2)
    public System.int Compare( 
       NGraphVertex v1,
       NGraphVertex v2
    )

    Parameters

    v1
    The first graph vertex to be compared.
    v2
    The second graph vertex to be compared.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also