C# Class Smrf.NodeXL.ExcelTemplate.DuplicateEdgeMerger

Merges duplicate edges in the edge worksheet.
Use MergeDuplicateEdges(Workbook) to merge duplicate edges in the edge worksheet.

"Merge" means either count duplicates and include the counts in a new edge weight column, or delete all but one edge in each set of duplicate edges, or both.

Inheritance: Object
Afficher le fichier Open project: 2014-sed-team3/term-project

Méthodes publiques

Méthode Description
DuplicateEdgeMerger ( ) : System

Initializes a new instance of the DuplicateEdgeMerger class.

MergeDuplicateEdges ( Microsoft workbook ) : void
MergeDuplicateEdges ( Microsoft workbook, System.Boolean countDuplicateEdges, System.Boolean deleteDuplicateEdges, String thirdColumnNameForDuplicateDetection ) : void

Méthodes protégées

Méthode Description
CountDuplicateEdges ( ListObject oEdgeTable, Object aoVertex1NameValues, Object aoVertex2NameValues, Object aoThirdColumnValues, System.Boolean bGraphIsDirected ) : void
DeleteDuplicateEdges ( ListObject oEdgeTable, Object aoVertex1NameValues, Object aoVertex2NameValues, Object aoThirdColumnValues, System.Boolean bGraphIsDirected ) : void
DeleteMarkedRows ( ListObject oEdgeTable, Range oDeleteIfEmptyData, Object aoDeleteIfEmptyValues ) : void
GetRowCount ( Object aoColumnValues ) : Int32
MarkRowsForDeletion ( ListObject oEdgeTable, Object aoVertex1NameValues, Object aoVertex2NameValues, Object aoThirdColumnValues, System.Boolean bGraphIsDirected, ListColumn &oDeleteIfEmptyColumn, Range &oDeleteIfEmptyData, Object &aoDeleteIfEmptyValues ) : void
SortEdgeTable ( ListObject oEdgeTable, Range oRangeToSortOn ) : void
TryGetEdgeKey ( Int32 iRowOneBased, Object aoVertex1NameValues, Object aoVertex2NameValues, Object aoThirdColumnValues, System.Boolean bGraphIsDirected, String &sEdgeKey ) : System.Boolean
TryGetEdgeTable ( Microsoft oWorkbook, ListObject &oEdgeTable ) : System.Boolean
TryGetInformationFromEdgeTable ( Microsoft oWorkbook, ListObject oEdgeTable, String sThirdColumnName, System.Boolean &bGraphIsDirected, Range &oVertex1NameData, Object &aoVertex1NameValues, Range &oVertex2NameData, Object &aoVertex2NameValues, Object &aoThirdColumnValues ) : System.Boolean

Private Methods

Méthode Description
AssertValid ( ) : void

Method Details

CountDuplicateEdges() protected méthode

protected CountDuplicateEdges ( ListObject oEdgeTable, Object aoVertex1NameValues, Object aoVertex2NameValues, Object aoThirdColumnValues, System.Boolean bGraphIsDirected ) : void
oEdgeTable ListObject
aoVertex1NameValues Object
aoVertex2NameValues Object
aoThirdColumnValues Object
bGraphIsDirected System.Boolean
Résultat void

DeleteDuplicateEdges() protected méthode

protected DeleteDuplicateEdges ( ListObject oEdgeTable, Object aoVertex1NameValues, Object aoVertex2NameValues, Object aoThirdColumnValues, System.Boolean bGraphIsDirected ) : void
oEdgeTable ListObject
aoVertex1NameValues Object
aoVertex2NameValues Object
aoThirdColumnValues Object
bGraphIsDirected System.Boolean
Résultat void

DeleteMarkedRows() protected méthode

protected DeleteMarkedRows ( ListObject oEdgeTable, Range oDeleteIfEmptyData, Object aoDeleteIfEmptyValues ) : void
oEdgeTable ListObject
oDeleteIfEmptyData Range
aoDeleteIfEmptyValues Object
Résultat void

DuplicateEdgeMerger() public méthode

Initializes a new instance of the DuplicateEdgeMerger class.
public DuplicateEdgeMerger ( ) : System
Résultat System

GetRowCount() protected méthode

protected GetRowCount ( Object aoColumnValues ) : Int32
aoColumnValues Object
Résultat System.Int32

MarkRowsForDeletion() protected méthode

protected MarkRowsForDeletion ( ListObject oEdgeTable, Object aoVertex1NameValues, Object aoVertex2NameValues, Object aoThirdColumnValues, System.Boolean bGraphIsDirected, ListColumn &oDeleteIfEmptyColumn, Range &oDeleteIfEmptyData, Object &aoDeleteIfEmptyValues ) : void
oEdgeTable ListObject
aoVertex1NameValues Object
aoVertex2NameValues Object
aoThirdColumnValues Object
bGraphIsDirected System.Boolean
oDeleteIfEmptyColumn ListColumn
oDeleteIfEmptyData Range
aoDeleteIfEmptyValues Object
Résultat void

MergeDuplicateEdges() public méthode

public MergeDuplicateEdges ( Microsoft workbook ) : void
workbook Microsoft
Résultat void

MergeDuplicateEdges() public méthode

public MergeDuplicateEdges ( Microsoft workbook, System.Boolean countDuplicateEdges, System.Boolean deleteDuplicateEdges, String thirdColumnNameForDuplicateDetection ) : void
workbook Microsoft
countDuplicateEdges System.Boolean
deleteDuplicateEdges System.Boolean
thirdColumnNameForDuplicateDetection String
Résultat void

SortEdgeTable() protected méthode

protected SortEdgeTable ( ListObject oEdgeTable, Range oRangeToSortOn ) : void
oEdgeTable ListObject
oRangeToSortOn Range
Résultat void

TryGetEdgeKey() protected méthode

protected TryGetEdgeKey ( Int32 iRowOneBased, Object aoVertex1NameValues, Object aoVertex2NameValues, Object aoThirdColumnValues, System.Boolean bGraphIsDirected, String &sEdgeKey ) : System.Boolean
iRowOneBased System.Int32
aoVertex1NameValues Object
aoVertex2NameValues Object
aoThirdColumnValues Object
bGraphIsDirected System.Boolean
sEdgeKey String
Résultat System.Boolean

TryGetEdgeTable() protected méthode

protected TryGetEdgeTable ( Microsoft oWorkbook, ListObject &oEdgeTable ) : System.Boolean
oWorkbook Microsoft
oEdgeTable ListObject
Résultat System.Boolean

TryGetInformationFromEdgeTable() protected méthode

protected TryGetInformationFromEdgeTable ( Microsoft oWorkbook, ListObject oEdgeTable, String sThirdColumnName, System.Boolean &bGraphIsDirected, Range &oVertex1NameData, Object &aoVertex1NameValues, Range &oVertex2NameData, Object &aoVertex2NameValues, Object &aoThirdColumnValues ) : System.Boolean
oWorkbook Microsoft
oEdgeTable ListObject
sThirdColumnName String
bGraphIsDirected System.Boolean
oVertex1NameData Range
aoVertex1NameValues Object
oVertex2NameData Range
aoVertex2NameValues Object
aoThirdColumnValues Object
Résultat System.Boolean