C# Class Smrf.NodeXL.Core.ByDelegateVertexSorter

Sorts a collection of vertices using a vertex-comparison delegate.
Use this class when you want to sort a collection of vertices using your own vertex comparison method. Set the VertexComparer property to a delegate that compares two vertices, then call the method.

If you want to sort on metadata values, use instead. is optimized for this task.

Inheritance: VertexSorterBase
ファイルを表示 Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_oVertexComparer Comparison

Public Methods

Method Description
AssertValid ( ) : void
ByDelegateVertexSorter ( ) : System

Initializes a new instance of the ByDelegateVertexSorter class.

CompareVerticesByID ( IVertex vertex1, IVertex vertex2 ) : Int32

Protected Methods

Method Description
SortCore ( IVertex vertices ) : IVertex[]

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

ByDelegateVertexSorter() public method

Initializes a new instance of the ByDelegateVertexSorter class.
public ByDelegateVertexSorter ( ) : System
return System

CompareVerticesByID() public method

public CompareVerticesByID ( IVertex vertex1, IVertex vertex2 ) : Int32
vertex1 IVertex
vertex2 IVertex
return System.Int32

SortCore() protected method

protected SortCore ( IVertex vertices ) : IVertex[]
vertices IVertex
return IVertex[]

Property Details

m_oVertexComparer protected_oe property

protected Comparison m_oVertexComparer
return Comparison