Analyzer.ClusteringCoefficientCalculator.tryCalculate C# (CSharp) Method

tryCalculate() public method

public tryCalculate ( IGraph graph, BackgroundWorker bgw, VertexMetricBase &metrics ) : bool
graph IGraph
bgw System.ComponentModel.BackgroundWorker
metrics VertexMetricBase
return bool
        public override bool tryCalculate(IGraph graph, BackgroundWorker bgw, out VertexMetricBase metrics)
        {
            MetricDouble oMetricDouble;
            bool rv = TryCalculateGraphMetrics(graph, bgw, out oMetricDouble);
            if (rv == true)
                metrics = oMetricDouble;
            else
                metrics = new MetricDouble(1);
            return rv;
        }