AddGraphMetricValuesForTopWordsAndWordPairs
(
IEnumerable<IEdge> edges,
String statusEdgeColumnName,
Int32 maximumTopTerms,
WordCounter wordCounter,
WordPairCounter wordPairCounter,
Int32 vertexRowID,
List<GraphMetricValueWithID>
topWordsInTweetByCountGraphMetricValues,
List<GraphMetricValueWithID>
topWordsInTweetBySalienceGraphMetricValues,
List<GraphMetricValueWithID>
topWordPairsInTweetByCountGraphMetricValues,
List<GraphMetricValueWithID>
topWordPairsInTweetBySalienceGraphMetricValues
)
{
Debug.Assert(edges != null);
Debug.Assert( !String.IsNullOrEmpty(statusEdgeColumnName) );
Debug.Assert(maximumTopTerms > 0);
Debug.Assert(wordCounter != null);
Debug.Assert(wordPairCounter != null);
Debug.Assert(topWordsInTweetByCountGraphMetricValues != null);
Debug.Assert(topWordsInTweetBySalienceGraphMetricValues != null);
Debug.Assert(topWordPairsInTweetByCountGraphMetricValues != null);
Debug.Assert(topWordPairsInTweetBySalienceGraphMetricValues != null);
String sTopWordsInTweetByCount, sTopWordsInTweetBySalience,
sTopWordPairsInTweetByCount, sTopWordPairsInTweetBySalience;
ConcatenateTopWordsAndWordPairs(edges, statusEdgeColumnName,
maximumTopTerms, wordCounter, wordPairCounter,
out sTopWordsInTweetByCount, out sTopWordsInTweetBySalience,
out sTopWordPairsInTweetByCount,
out sTopWordPairsInTweetBySalience);
topWordsInTweetByCountGraphMetricValues.Add(
new GraphMetricValueWithID( vertexRowID,
ExcelUtil.ForceCellText(sTopWordsInTweetByCount) ) );
topWordsInTweetBySalienceGraphMetricValues.Add(
new GraphMetricValueWithID( vertexRowID,
ExcelUtil.ForceCellText(sTopWordsInTweetBySalience) ) );
topWordPairsInTweetByCountGraphMetricValues.Add(
new GraphMetricValueWithID( vertexRowID,
ExcelUtil.ForceCellText(sTopWordPairsInTweetByCount) ) );
topWordPairsInTweetBySalienceGraphMetricValues.Add(
new GraphMetricValueWithID( vertexRowID,
ExcelUtil.ForceCellText(sTopWordPairsInTweetBySalience) ) );
}