public static double ClusteringCoefficient(this Graph graph)
        {
            if (graph == null)
            {
                throw new ArgumentNullException(nameof(graph));
            }

            var coefCalculator = new ClusteringCoefficient(graph);

            return(coefCalculator.GetClusteringCoefficientForGraph());
        }
        public static double ClusteringCoefficientFor(this Graph graph, int verticeIndex)
        {
            if (graph == null)
            {
                throw new ArgumentNullException(nameof(graph));
            }
            if (verticeIndex < 0)
            {
                throw new ArgumentException("Индекс вершины отрицательный.");
            }

            var coefCalculator = new ClusteringCoefficient(graph);

            return(coefCalculator.GetClusteringCoefficientForVertex(verticeIndex));
        }