In R, the following code can be used to calculate cluster coefficients.
transitivity(g,type = "global") #"g" is my graph
However, this is for undirected graphs and differs from the results obtained by Cytoscape and Gephi. How can I get the same cluster coefficient values in R for directed graphs as in other software?