Nevron .NET Vision
Nevron.Diagram.DataStructures Namespace / NGraphVertexDegreeComparer Class / Compare Method


In This Topic
    Compare Method (NGraphVertexDegreeComparer)
    In This Topic
    Returns -1 if v1 degree is smaller than v2 degree. Returns 1 if v1 degree is larger than v2 degree. Returns 0 if v1 degree is equal to v2 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
    v2
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also