Hmm. I could reproduce this. Looks like gt somehow ignores  that out_degree
is 0 and is counting it to be 3 (which is actually in-degree). Then the
maximum number of links among neighbours would be at most 3C2 = 3 but
actually 6 are present. So it simply takes the ration 6/3 = 2. Tiago would
be able to say more about this though.

Best
Snehal

On Wed, Oct 19, 2016 at 9:47 PM, P-M <[email protected]> wrote:

> Here is a more helpful visualisation with the vertices labelled:
> <http://main-discussion-list-for-the-graph-tool-project.
> 982480.n3.nabble.com/file/n4026785/clust.png>
>
> So the issue lies with vertex 0 which has an outdegree of 0 and an indegree
> of 3 but a clustering coefficient of 2.
>
>
>
> --
> View this message in context: http://main-discussion-list-
> for-the-graph-tool-project.982480.n3.nabble.com/Local-
> Clustering-Coefficient-for-k-1-tp4026696p4026785.html
> Sent from the Main discussion list for the graph-tool project mailing list
> archive at Nabble.com.
> _______________________________________________
> graph-tool mailing list
> [email protected]
> https://lists.skewed.de/mailman/listinfo/graph-tool
>



-- 




Snehal Madhukar Shekatkar
Pune
India
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to