You need transitivity_avglocal_undirected - this will do what you want. The 
other function counts all the triangles in the entire graph and then divides it 
by the number of connected triplets, so it doesn't work in a node-by-node basis.

T. 

> On 25 Apr 2015, at 04:50, Jason Yang <[email protected]> wrote:
> 
> Hi there, 
>     I am trying to calculate the clustering coefficient for every node in the 
> graph and then do an average. Then I noticed that there are two functions, 
> transitivity_avglocal_undirected and transitivity_undirected, I try to 
> compare the difference between these two, but I do not know what is the 
> difference between them, can anyone help me on this? 
> 
> Best, 
> Jason 
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to