Add an overloaded function clusterCoefficient() that takes an integer argument (k) to Sma17Wor7d (Program 4.5.5) so that

Question:

Add an overloaded function clusterCoefficient() that takes an integer argument \(k\) to Sma17Wor7d (Program 4.5.5) so that it computes a local cluster coefficient for the graph based on the total edges present and the total edges possible among the set of vertices within distance \(k\) of each vertex. When \(k\) is equal to 1 , the function produces results identical to the no-argument version of the function.

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: