How can I calculate the cluster coefficients of a directed graph in R?

Viewed 304

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?

0 Answers
Related