Weighted network statistics calculation

Registered by Dimitris Kalamaras on 2014-07-31

The problem was that the calculation of std IDC' was done by dividing IDC with the number of vertices minus 1. That was okay for non-weighted graphs. But not for weighted graphs. I changed the code so that if the graph is weighted, SocNetv calculates IDC' by dividing IDC with the sum of IDCs. And it seems okay but work needs to be done for GDC.

For instance, check this network:

0 0 0 1 0
1 0 0 0 0
0 1 0 0 0
0 0 0 0 1
0 0 0 0 0

It reports GDC = 0.009

But if we change a link weight ie.
0 0 0 1 0
1 0 0 0 0
0 1 0 0 0
0 0 0 0 12
0 0 0 0 0

then it reports GDC = 0.938 which is clearly wrong.

The thing is, I think we cannot have GDC in weighted networks.

Blueprint information

Status:
Complete
Approver:
Dimitris Kalamaras
Priority:
Essential
Drafter:
Dimitris Kalamaras
Direction:
Approved
Assignee:
Dimitris Kalamaras
Definition:
Approved
Series goal:
Accepted for 1.x
Implementation:
Implemented
Milestone target:
milestone icon 2.0
Started by
Dimitris Kalamaras on 2014-08-19
Completed by
Dimitris Kalamaras on 2016-09-13

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.