public AnalysisResult Analyse(Hierarchy hierarchy)
        {
            AnalysisResult result = new AnalysisResult();

            foreach (Alternative alternative in hierarchy.Alternatives)
            {
                result.Add(alternative, 0M);
            }

            foreach (CriterionNode node in hierarchy.GoalNode.GetLowestCriterionNodes())
            {
                foreach (Alternative alternative in hierarchy.Alternatives)
                {
                    result[alternative] += hierarchy[alternative, node].GlobalPriority;
                }
            }

            return(result);
        }
        public AnalysisResult Analyse(Hierarchy hierarchy)
        {
            var result = new AnalysisResult();

            foreach (var alternative in hierarchy.Alternatives)
            {
                result.Add(alternative, 0M);
            }

            foreach (var node in hierarchy.GetLowestCriterionNodes())
            {
                foreach (var alternative in hierarchy.Alternatives)
                {
                    result[alternative] += node.AlternativeNodes[alternative].GlobalPriority;
                }
            }

            return(result);
        }