For this quizz,
we look at Dan
and we see that he has 2 neighbors,
Sara and Alan,
who are connected.
So all of its pairs of neighbors
are connected,
so its clustering is 1.
But if we look at Alan,
he has 4 neighbors,
and only 2 pairs of them are connected,
there's possibility of 6 pairs all together,
so he has 2 out of 6 possible pairs connected,
which is 1/3.
So we can actually go ahead and mark the clustering
for each of these individuals
in the network,
and you can add them all up and divide by 5
which gives you 0.87.