[{"data":1,"prerenderedAt":171},["ShallowReactive",2],{"/nw/modularity":3,"/nw/modularity-surround":160},{"id":4,"title":5,"body":6,"description":126,"extension":127,"meta":128,"navigation":146,"path":156,"seo":157,"stem":158,"__hash__":159},"content/nw/modularity.md","Networks Extension Dictionary: modularity",{"type":7,"value":8,"toc":116},"minimark",[9],[10,11,15,16,15,26,42,52,55,58],"div",{"className":12,"id":14},[13],"dict_entry","modularity","\n  ",[17,18,20,21,15],"h3",{"id":19},"nwmodularity","\n    ",[22,23,25],"a",{"href":24},"#modularity","nw:modularity",[27,28,32],"h4",{"id":29,"className":30},"nwmodularity-1",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----nwmodularity---1",[38,39,25],"span",{"className":40},[41],"prim_example",[43,44,45,51],"p",{},[22,46,50],{"href":47,"rel":48},"https://en.wikipedia.org/wiki/Modularity_(networks)",[49],"nofollow","Modularity"," is a measurement of community structure in the network. It is defined based on the number of in-community links versus the number of between-community links. This primitive takes as input a list of agentsets, where each of the agentsets is one the communities that you’re separating the network into.",[43,53,54],{},"This measurement works on undirected, directed, and mixed-directedness networks. In the case of mixed-directedness, undirected links are treated essentially the same as two opposing directed links. It does not take weight into account.",[43,56,57],{},"Example:",[59,60,61],"pre",{},[62,63,64,69,70,69,75,79,80,84,85,79,89,79,93,98,99,79,102,84,105,79,108,79,111,115],"code",{},[38,65,25],{"className":66},[67,68],"token","variable"," (",[38,71,74],{"className":72},[67,73],"reporter","list",[38,76,78],{"className":77},[67,73],"turtles"," ",[38,81,83],{"className":82},[67,73],"with"," [ ",[38,86,88],{"className":87},[67,73],"color",[38,90,92],{"className":91},[67,73],"=",[38,94,97],{"className":95},[67,96],"constant","blue"," ]) (",[38,100,78],{"className":101},[67,73],[38,103,83],{"className":104},[67,73],[38,106,88],{"className":107},[67,73],[38,109,92],{"className":110},[67,73],[38,112,114],{"className":113},[67,96],"red"," ]))",{"title":117,"searchDepth":118,"depth":119,"links":120},"",5,3,[121],{"id":19,"depth":119,"text":122,"children":123},"\n    nw:modularity\n  ",[124],{"id":29,"depth":125,"text":122},4,"Documentation for the modularity primitive.","md",{"source":129,"metadataOutputPath":130,"projectConfig":131,"language":139,"inheritFrom":147,"output":146,"version":132,"layout":148,"dictionaryDisplayName":149,"dictionaryHomeDirectory":150,"indexFileURI":151,"currentItemId":14,"currentItemLabel":25,"primRoot":152,"icon":153,"extensionName":154,"assetsRoot":134},"../../external/extensions/nw/nw/modularity.md","content/nw/modularity.metadata.yaml",{"version":132,"projectRoot":133,"scanRoot":134,"outputRoot":135,"defaults":136,"engine":142,"partials":143,"dedupeIdenticalDiskWrites":146},"7.0.4",".","/home/runner/work/Helio/Helio/external/extensions/nw","content",{"inheritFrom":137,"language":139,"output":140,"extension":127,"title":141,"version":132},[138],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":144,"extensions":145},[133],[142,127],true,[138],"catalog","Networks Extension Dictionary","/nw.html","/_index/extensions/nw.txt","nw","i-lucide-network",{"shortName":152,"fullName":155},"Networks","/nw/modularity",{"title":5,"description":126},"nw/modularity","k1Qgy0m8VBDrAQVHWmqcKYDAJDId_1KdG_h_hMQSXPg",[161,166],{"title":162,"path":163,"stem":164,"description":165},"Networks Extension Dictionary: mean-weighted-path-length","/nw/mean-weighted-path-length","nw/mean-weighted-path-length","Documentation for the mean-weighted-path-length primitive.",{"title":167,"path":168,"stem":169,"description":170},"Networks Extension Dictionary: page-rank","/nw/page-rank","nw/page-rank","Documentation for the page-rank primitive.",1777657883354]