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); }
public int FindMaxDegree() { return(Degrees.Max()); }