private void Increment(NodeRelationshipCache cache, long node, int count) { for (int i = 0; i < count; i++) { cache.IncrementCount(node); } }
private long IncrementRandomCounts(NodeRelationshipCache link, int nodeCount, int i) { long highestSeenCount = 0; while (i-- > 0) { long node = Random.Next(nodeCount); highestSeenCount = max(highestSeenCount, link.IncrementCount(node)); } return(highestSeenCount); }