Leverage centrality you can actually get without the nw extension: to-report leverage-centrality let d count my-links report mean [ (d - count my-links) / (d + count my-links) ] of link-neighbors end
The implementation of h-index depends largely implementation dependent on how citation and authorship are represented. First, get a list of the number of citations for each publication, you can use this to calculate h-index: to-report h-index [ publications ] let h 0 foreach reverse sort publications [ p -> if h > p [ report h ] set h h + 1 ] report 0 end Best, Bryan On Fri, Nov 1, 2019 at 11:26 AM zozo <zahraa2013.1...@gmail.com> wrote: > I am new in using NetLogo , so I hope you can help me > > I'm using network extension "nw". I calculated closeness, betweenness and > eigne vector easily using this extension. > > but I don't know how to code for leverage_centrality ,h_index centrality > > Any help plz. > > -- > 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/f138116a-67e2-4bba-b3c1-acd631177208%40googlegroups.com > <https://groups.google.com/d/msgid/netlogo-devel/f138116a-67e2-4bba-b3c1-acd631177208%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Bryan Head PhD Candidate, Computer Science Center for Connected Learning and Computer-Based Modeling Department of Electrical Engineering and Computer Science Northwestern University -- 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/CAFM%3DnTfQp6hABOTdJC5Q-ORNfsHyR-HJYoo2WnN-%2BLRv%2BFMA1w%40mail.gmail.com.