aestrivex / bctpy

brain connectivity toolbox for python
GNU General Public License v3.0
294 stars 138 forks source link

Issue with weighted transitivity and clustering coefficient? #117

Open CallowBrainProject opened 1 year ago

CallowBrainProject commented 1 year ago

Hello,

I have been running

transitivity.append(bct.transitivity_wu(np_SC))

and

bct.clustering_coef_wu(np_SC)

on a weighted brain network (np_SC).

However my weighted measures are rather large and above the 0-1 range.

I get a transitivity of 50 and a clustering coefficient of 47 for the following attached graph. Is there some documentation for how this is calculated? I would have though it would output a ratio however, given these are weighted networks maybe there is something different going on? Is it possible to see the source code/mathematical calculation for how these specific measures are being produced? Or maybe an explanation (I may just be misunderstanding something!)

Thanks, Daniel Callow

HCA6002236_V1_MR_connectome.csv

aestrivex commented 1 year ago

Can you provide the networks that are causing these outputs?