Example #1
0
 private void Increment(NodeRelationshipCache cache, long node, int count)
 {
     for (int i = 0; i < count; i++)
     {
         cache.IncrementCount(node);
     }
 }
Example #2
0
        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);
        }