Esempio n. 1
0
        public List <int> FindCN()
        {
            int minDegree = FindMinDegree();

            if (minDegree < 2)
            {
                throw new Exception("Minimalny stopień grafu jest mniejszy od 2!");
            }
            var largestDegreeVertexIndex = Degrees.IndexOf(Degrees.Max());
            var list = FindCNRecursive(new List <int>()
            {
                largestDegreeVertexIndex
            }, minDegree);

            return(list);
        }
Esempio n. 2
0
 public int FindMaxDegree()
 {
     return(Degrees.Max());
 }