my work is to Import Real Network and calculate the centrality measure to all node,so i want to print the centrality like betweenness to all node sequentially in csv files ,so i try this code to save file-open "file1.csv" Let Dk1 [ nw:betweenness-centrality] of turtle-set sort turtles if is-number? Dk1 [ set Dk1 precision Dk1 2 ]
file-print(word "betweenness-centrality: " Dk1) file-close ; end the result of this code is betweenness-centrality: [752 11143.696397230226 1530.7500000000002 0 0 0 0 300.6666666666667 733.3333333333334 0 0 0 2858.4248831234145 0 0 0 0 0 0 248.33333333333465 0 0 0 0 0 0 0 1131.3473692973673 0.6666666666666666 4.5 312.66666666666777 0 0 0 0 0 0 2674.676078771586 2.666666666666666 0 1.3333333333333333 0 2 1.5 0 0 122.50000000000014 0 0 0 5154.066549790079 0 0 0 0 0 1142.8333333333333 0 0 1004.3340062929825 2974.666666666667 0 0 0 0 0 0 0 0 6203 0 188.8660401002507 1000.3333333333321 0.6666666666666666 377 0 0 0 0 9 0 0 0 376.99999999999994 0 0.25 0 0 0 0 3950.075974025975 0 0 0 0 0 2988.0367878853253 80.48571428571431 0 0 1 0 0 0 1057.3547619047624 0 0 0 0 0 2858.4248831234145 0 0 0 0 1 619.7523809523807 2129.7522175536883 0 0 377 0 0 0 0 0 1870 377.00000000000006 332.5200255884468 408.1666666666667 0 0 0 2597 0 2966.166666666667 850.4166666666666 0 13.200000000000001 0 16506.036277362124 0 0 3238.3389499389496 28.039285714285707 104.41868131868131 4764.591768688829 2.6666666666666665 0 0 0 0 24592.767656036725 0 2 862.9999999999945 0 0 1869 28300.564474216935 0 378.1549643339114 19249.90431741462 0 0 0.5 0 17858.002512812254 0 0 0 0 1.5 566.1666666666666 0 0 12446.912583005222 0 2267.2142857142853 0 15.833333333333327 0 0 0 3051.676078771583 862.9999999999945 0 0 0 0 0 0 131.65833333333327 1125.5 1318.9030303030304 377 0 1125 0 0 0 0 0 1.0666666666666667 0 44.666666666666664 0 439.63333333333327 0 1129.6666666666665 0 0 1496 18200.000000000004 0 3321 0 0 1.5 0 332.5200255884468 0 0 0 0 0 0 0 0 0 862.9999999999945 0 0 0 0 1496 0 0 0 10.16666666666666 0 0 10834.473420370472 0 0 0 3321 0 378.1549643339114 0 0 0 0 10575.906103966548 0 8911.833333333332 0 0 0 0 0 0 1125 0 0 312.66666666666777 22.085714285714285 0 0 1125.0000000000002 3336.5 0 25.205952380952375 0 0 0 296.0347100268153 901.9696968236454 0 760.9214285714286 0 0 0 1865.666666666667 1496 0 0 1 0.6666666666666666 481.5 0 56.014285714285755 0 3249.6061039665524 0 20379.78598901096 769.2523809523808 0 1497 0 0 0 2608 0 0 385 377 0 0 0 0 0 0 0 0 0 4987.970473652594 12460.579249671895 0 0 248.33333333333465 170.95135387488332 0 0 0 0 0 6.5 0 0 0 0 752 0 0 0 0 0 754.8333333333334 0.5 0 3000.7631528602146 377 4601.692492251475 6.333333333333336 0 0 0 0 0 186.33333333333331 0 0 1125 0 0 0 0 0 2652.2523809523796 0 0 15786.012583005193 6516.850268848803 1.8333333333333333 0 0 0 0 0 0 124.66666666666764 186.01666666666665 0.3333333333333333 0 0 0 0 0] and compared the result above to turtle 0 and result of this code is different Let Dk1 [nw:betweenness-centrality] of turtle 0 betweenness-centrality: 6516.85 and the first code is change every implement so any help plez whats wrong? -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/923ed0a7-dafc-431a-a4d5-e18a517184ec%40googlegroups.com.