igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Problems about igraph calculating cluster coefficient


From: Tamas Nepusz
Subject: Re: [igraph] Problems about igraph calculating cluster coefficient
Date: Fri, 20 Mar 2015 12:21:31 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

Hi

I suspect that problem is the same as in your other query regarding the
closeness centrality, so please refer to my earlier response there:

https://lists.nongnu.org/archive/html/igraph-help/2015-02/msg00030.html

T.

On 03/20, 镜 wrote:
> Hi
> 
> 
> The igraph vesion I was using is 6.5,and I have a problem about calculating 
> clustering coefficient.When I use the function like this
> igraph_vector_t clusterres;
> igraph_vector_init(&clusterres, 0);
> igraph_transitivity_local_undirected(&g,&clusterres,igraph_vss_all(), 
> IGRAPH_TRANSITIVITY_ZERO);‍
> 
> the result in  clusterres ‍is zero or one,but the real result is not like 
> this .
> The parameters' meaning are as follows:
> &g means the graph data ;
> & clusterres ‍is used to store the result;
> the graph is undirected and unweighted;
> the example dataset is as follows:
> 0 1
> 0 2
> 1 2
> 1 3
> 3 2
> I want to calculate all vertices in the graph.In this function I can't get 
> the right result ,and I don't know why.Maybe I need your help.
> Thank you very much!
> 
> 
> Best Regrads!
> 
> 
> Tian Li‍

> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help


-- 
T.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]