C# Класс Smrf.NodeXL.ExcelTemplate.TwitterSearchNetworkTopItemsCalculator2

Calculates the top items within a Twitter search network.
This class calculates various top-item metrics for a Twitter search network. If the workbook doesn't contain a Twitter search network, this class does nothing.

This graph metric calculator differs from most other calculators in that it reads tweet-related columns that were written to the Excel workbook by the TwitterSearchNetworkImporter class. The other calculators look only at how the graph's vertices are connected to each other. Therefore, there is no corresponding lower-level TwitterSearchNetworkTopItemsCalculator class in the Smrf.NodeXL.Algorithms namespace, and the top items in a Twitter search network cannot be calculated outside of this ExcelTemplate project.

Here are the metrics calculated by this class.

For the Twitter Search network top items worksheet:

Top URLs, domains, hashtags, words, word pairs, replies-to, and mentions in tweets; and top tweeters. These get calculated for the entire graph, as well as for the graph's top groups, ranked by vertex count.

For the group worksheet:

Top URLs, domains, hashtags, words, word pairs, replies-to, and mentions in tweets; and top tweeters. These get calculated for each group.

For the vertex worksheet:

Top URLs, domains, hashtags, words, and word pairs in tweets, by both count and salience. These get calculated for each vertex.

Наследование: TopItemsCalculatorBase2
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_oGraphHistory GraphHistory
m_oTwitterStatusTextParser Smrf.SocialNetworkLib.Twitter.TwitterStatusTextParser

Открытые методы

Метод Описание
AssertValid ( ) : void
TwitterSearchNetworkTopItemsCalculator2 ( GraphHistory graphHistory ) : System

Initializes a new instance of the class.

Защищенные методы

Метод Описание
AddColumnsForRepliesToAndMentions ( Int32 &iTableIndex, List oAllGroupEdgeInfos, List oGraphMetricColumns ) : void
AddColumnsForStatusContent ( Int32 &iTableIndex, List oAllGroupEdgeInfos, String sEdgeColumnName, System.Boolean bEdgeColumnContainsUrls, String sGroupTableColumnName, List oGraphMetricColumns ) : void
AddColumnsForTweeters ( Int32 &iTableIndex, IGraph oGraph, List oGraphMetricColumns ) : void
AddGraphMetricColumnPair ( String sTableName, String sGraphMetricColumn1Name, String sGraphMetricColumn2Name, List oTopStrings, List oTopStringCounts, System.Boolean bTopStringsContainUrls, List oGraphMetricColumns ) : void
AdjustColumnWidths ( List oGraphMetricColumns, List oAllGroupEdgeInfos ) : void
FilterAndReformatWordMetrics ( Int32 &iTableIndex, GraphMetricColumn oWordMetricColumns, List oAllGroupEdgeInfos, List oGraphMetricColumns ) : void
FilterAndReformatWordMetrics ( Int32 &iTableIndex, String sTableDescription, GraphMetricColumnOrdered oWord1Column, GraphMetricColumnOrdered oWord2Column, GraphMetricColumnOrdered oCountColumn, GraphMetricColumnOrdered oGroupNameColumn, List oAllGroupEdgeInfos, String sGroupTableColumnName, List oGraphMetricColumns ) : void
GetGraphMetricColumnNames ( String sTableDescription, String sGroupName, String &sGraphMetricColumn1Name, String &sGraphMetricColumn2Name ) : void
GetGroupName ( GroupEdgeInfo oGroupEdgeInfo ) : String
GetGroupRowID ( GroupEdgeInfo oGroupEdgeInfo ) : Int32
GetSearchTerm ( ) : String
GetTableName ( Int32 &iTableIndex ) : String
ReportProgressAndCheckCancellationPending ( CalculateGraphMetricsContext oCalculateGraphMetricsContext ) : System.Boolean
TryAddColumnsForWordsAndWordPairs ( Int32 &iTableIndex, IGraph oGraph, List oAllGroupEdgeInfos, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
TryCalculateTopItemAndGroupMetrics ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
TryCalculateVertexMetrics ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean

Описание методов

AddColumnsForRepliesToAndMentions() защищенный Метод

protected AddColumnsForRepliesToAndMentions ( Int32 &iTableIndex, List oAllGroupEdgeInfos, List oGraphMetricColumns ) : void
iTableIndex System.Int32
oAllGroupEdgeInfos List
oGraphMetricColumns List
Результат void

AddColumnsForStatusContent() защищенный Метод

protected AddColumnsForStatusContent ( Int32 &iTableIndex, List oAllGroupEdgeInfos, String sEdgeColumnName, System.Boolean bEdgeColumnContainsUrls, String sGroupTableColumnName, List oGraphMetricColumns ) : void
iTableIndex System.Int32
oAllGroupEdgeInfos List
sEdgeColumnName String
bEdgeColumnContainsUrls System.Boolean
sGroupTableColumnName String
oGraphMetricColumns List
Результат void

AddColumnsForTweeters() защищенный Метод

protected AddColumnsForTweeters ( Int32 &iTableIndex, IGraph oGraph, List oGraphMetricColumns ) : void
iTableIndex System.Int32
oGraph IGraph
oGraphMetricColumns List
Результат void

AddGraphMetricColumnPair() защищенный Метод

protected AddGraphMetricColumnPair ( String sTableName, String sGraphMetricColumn1Name, String sGraphMetricColumn2Name, List oTopStrings, List oTopStringCounts, System.Boolean bTopStringsContainUrls, List oGraphMetricColumns ) : void
sTableName String
sGraphMetricColumn1Name String
sGraphMetricColumn2Name String
oTopStrings List
oTopStringCounts List
bTopStringsContainUrls System.Boolean
oGraphMetricColumns List
Результат void

AdjustColumnWidths() защищенный Метод

protected AdjustColumnWidths ( List oGraphMetricColumns, List oAllGroupEdgeInfos ) : void
oGraphMetricColumns List
oAllGroupEdgeInfos List
Результат void

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

FilterAndReformatWordMetrics() защищенный Метод

protected FilterAndReformatWordMetrics ( Int32 &iTableIndex, GraphMetricColumn oWordMetricColumns, List oAllGroupEdgeInfos, List oGraphMetricColumns ) : void
iTableIndex System.Int32
oWordMetricColumns GraphMetricColumn
oAllGroupEdgeInfos List
oGraphMetricColumns List
Результат void

FilterAndReformatWordMetrics() защищенный Метод

protected FilterAndReformatWordMetrics ( Int32 &iTableIndex, String sTableDescription, GraphMetricColumnOrdered oWord1Column, GraphMetricColumnOrdered oWord2Column, GraphMetricColumnOrdered oCountColumn, GraphMetricColumnOrdered oGroupNameColumn, List oAllGroupEdgeInfos, String sGroupTableColumnName, List oGraphMetricColumns ) : void
iTableIndex System.Int32
sTableDescription String
oWord1Column GraphMetricColumnOrdered
oWord2Column GraphMetricColumnOrdered
oCountColumn GraphMetricColumnOrdered
oGroupNameColumn GraphMetricColumnOrdered
oAllGroupEdgeInfos List
sGroupTableColumnName String
oGraphMetricColumns List
Результат void

GetGraphMetricColumnNames() защищенный Метод

protected GetGraphMetricColumnNames ( String sTableDescription, String sGroupName, String &sGraphMetricColumn1Name, String &sGraphMetricColumn2Name ) : void
sTableDescription String
sGroupName String
sGraphMetricColumn1Name String
sGraphMetricColumn2Name String
Результат void

GetGroupName() защищенный Метод

protected GetGroupName ( GroupEdgeInfo oGroupEdgeInfo ) : String
oGroupEdgeInfo GroupEdgeInfo
Результат String

GetGroupRowID() защищенный Метод

protected GetGroupRowID ( GroupEdgeInfo oGroupEdgeInfo ) : Int32
oGroupEdgeInfo GroupEdgeInfo
Результат System.Int32

GetSearchTerm() защищенный Метод

protected GetSearchTerm ( ) : String
Результат String

GetTableName() защищенный Метод

protected GetTableName ( Int32 &iTableIndex ) : String
iTableIndex System.Int32
Результат String

ReportProgressAndCheckCancellationPending() защищенный Метод

protected ReportProgressAndCheckCancellationPending ( CalculateGraphMetricsContext oCalculateGraphMetricsContext ) : System.Boolean
oCalculateGraphMetricsContext CalculateGraphMetricsContext
Результат System.Boolean

TryAddColumnsForWordsAndWordPairs() защищенный Метод

protected TryAddColumnsForWordsAndWordPairs ( Int32 &iTableIndex, IGraph oGraph, List oAllGroupEdgeInfos, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
iTableIndex System.Int32
oGraph IGraph
oAllGroupEdgeInfos List
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
Результат System.Boolean

TryCalculateGraphMetricsInternal() защищенный Метод

protected TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
Результат System.Boolean

TryCalculateTopItemAndGroupMetrics() защищенный Метод

protected TryCalculateTopItemAndGroupMetrics ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
Результат System.Boolean

TryCalculateVertexMetrics() защищенный Метод

protected TryCalculateVertexMetrics ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
Результат System.Boolean

TwitterSearchNetworkTopItemsCalculator2() публичный Метод

Initializes a new instance of the class.
public TwitterSearchNetworkTopItemsCalculator2 ( GraphHistory graphHistory ) : System
graphHistory GraphHistory /// Describes how the graph was created. ///
Результат System

Описание свойств

m_oGraphHistory защищенное свойство

protected GraphHistory,Smrf.NodeXL.ExcelTemplate m_oGraphHistory
Результат GraphHistory

m_oTwitterStatusTextParser защищенное свойство

protected TwitterStatusTextParser,Smrf.SocialNetworkLib.Twitter m_oTwitterStatusTextParser
Результат Smrf.SocialNetworkLib.Twitter.TwitterStatusTextParser