C# Class Smrf.NodeXL.Core.VertexSorterBase

Base class for vertex sorters.
This abstract class can serve as a base class for implementations. Its implementations of the public methods provide error checking but defer the actual work to protected abstract methods.
Inheritance: NodeXLBase, IVertexSorter
Show file Open project: 2014-sed-team3/term-project

Public Methods

Method Description
AssertValid ( ) : void
Sort ( ICollection vertices ) : ICollection
VertexSorterBase ( ) : System

Initializes a new instance of the VertexSorterBase class.

Protected Methods

Method Description
SortCore ( IVertex vertices ) : IVertex[]

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

Sort() public method

public Sort ( ICollection vertices ) : ICollection
vertices ICollection
return ICollection

SortCore() protected abstract method

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

VertexSorterBase() public method

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