Average clustering coefficient of a network (igraph)

Using transitivity(graph) computes a global clustering coefficient (transitivity):

This is simply the ratio of the triangles and the connected triples in the graph. For directed graph the direction of the edges is ignored.

Meanwhile, transitivity(graph, type = "average") being an average of transitivity(graph, type = "local") first computes the local clustering coefficients and then averages them:

The local transitivity of an undirected graph, this is calculated for each vertex given in the vids argument. The local transitivity of a vertex is the ratio of the triangles connected to the vertex and the triples centered on the vertex. For directed graph the direction of the edges is ignored.

See, e.g., ?transitivity and Clustering coefficient.

So firstly both of them are valid measures and the choice should depend on your purposes. The difference between them is quite clear (see the wikipedia page):

It is worth noting that this metric places more weight on the low degree nodes, while the transitivity ratio places more weight on the high degree nodes. In fact, a weighted average where each local clustering score is weighted by k_i(k_i-1) is identical to the global clustering coefficient

where k_i is the number of vertex i neighbours. Hence, perhaps using both of them would be quite fair too.