NetLogo / NW-Extension

This is the NetLogo Network Extension. For general information about NetLogo, see:
http://ccl.northwestern.edu/netlogo/
Other
62 stars 25 forks source link

Add weighted version of eigenvector centrality #176

Open qiemem opened 7 years ago

qiemem commented 7 years ago

Requested by user.

This shouldn't be too hard to implement. This paper by Newman states that adding weights doesn't change anything: you still just use an eigenvector of the largest eigenvalue of the adjacency matrix. Thus, we should just be able to add in weight as factor in this line: https://github.com/NetLogo/NW-Extension/blob/hexy/src/main/org/nlogo/extensions/nw/algorithms/CentralityMeasurer.scala#L22