Hi,
I'm trying to compute Newman's assortativity coefficient
with graph-tool, but I'm getting unexpected high values of r.
Here's a test:
graph-tool
--correlated-configurational-model="N=20000,inv_pjk_ceil=\"(inv_poisson(p,5),inv_poisson(r,5))\",progress"
\
--save graph.xml
graph-tool --load graph.xml
--assortativity-coefficient="total-degree"
this is what I get:
assortativity coefficient (total-degree)
0.2105496706333980228 0.0036187517305024605174
The assortativity value above should be very close to zero
as the network is uncorrelated, but it’s reasonably large.
Also, when I try:
graph-tool --load graph.xml
--scalar-assortativity-coefficient="total-degree"
graph-tool crashes:
Traceback (most recent call last):
File "/usr/bin/graph-tool", line 494, in <module>
_main()
File "/usr/bin/graph-tool", line 470, in _main
run(parsed_options)
File "/usr/bin/graph-tool", line 356, in run
output_file = opt[0].output_file
AttributeError: OptionMask instance has no attribute
'output_file'
I'm running graph-tool 1.2.0devel (commit 8b98b8c6, Sun Jul
20 11:46:39 2008 +0200)
Am I missing something obvious?
many thanks,
Rui