Exemplo n.º 1
0
        public int GetCandidateRating(IKey candidateKey)
        {
            //int index = _votesForCandidates.OrderByDescending(cv => cv.Value.Count()).OrderByDescending(cv => cv.Key.GetHashCode()).Select(cv => cv.Key).ToList().IndexOf(candidateKey);
            int index = _topNodeKeys.FindIndex(k => candidateKey.Equals(k));

            return(index);
        }