[{"data":1,"prerenderedAt":7852},["ShallowReactive",2],{"/nw":3,"/nw-surround":7841},{"id":4,"title":5,"body":6,"description":7815,"extension":7816,"meta":7817,"navigation":7834,"path":7838,"seo":7839,"stem":2088,"__hash__":7840},"content/nw.md","Networks Extension",{"type":7,"value":8,"toc":7612},"minimark",[9,22,32,41,110,113,116,123,156,159,236,246,259,313,321,352,367,397,400,458,461,494,497,522,525,549,555,586,589,632,655,696,699,748,751,788,791,840,843,873,876,901,904,937,940,965,974,1008,1017,1117,1120,1123,1147,1156,1163,1172,1228,1237,1287,1296,1316,1325,1353,1362,1442,1451,1511,1520,1620,1629,1685,2484,2648,2902,2947,3146,3415,3643,3860,4143,4423,4596,4793,4825,4867,4903,4944,4977,5170,5246,5275,5314,5500,5541,5582,5671,5756,5849,6034,6184,6257,6323,6431,6594,6795,7142,7383,7479],[10,11,15],"h1",{"id":12,"className":13},"networks",[14],"section-heading",[16,17,21],"a",{"className":18,"href":20},[19],"section-anchor","#networks","Networks",[23,24,27],"h2",{"id":25,"className":26},"usage",[14],[16,28,31],{"className":29,"href":30},[19],"#usage","Usage",[33,34,35,36,40],"p",{},"The first thing that one needs to understand in order to work with the network extension is how to tell the extension ",[37,38,39],"em",{},"which"," network to work with. Consider the following example situation:",[42,43,44],"pre",{},[45,46,47,54,55,60,61,65,66,54,72,60,76,65,80,82,54,88,60,92,65,96,54,102,60,106,65],"code",{},[48,49,53],"span",{"className":50},[51,52],"token","keyword","breed"," [ ",[48,56,59],{"className":57},[51,58],"variable","bankers"," ",[48,62,64],{"className":63},[51,58],"banker"," ]",[48,67,69,53],{"className":68},[51,52],[70,71],"br",{},[48,73,75],{"className":74},[51,58],"clients",[48,77,79],{"className":78},[51,58],"client",[70,81],{},[48,83,85,87],{"className":84},[51,52],[70,86],{},"undirected-link-breed",[48,89,91],{"className":90},[51,58],"friendships",[48,93,95],{"className":94},[51,58],"friendship",[48,97,99,101],{"className":98},[51,52],[70,100],{},"directed-link-breed",[48,103,105],{"className":104},[51,58],"accounts",[48,107,109],{"className":108},[51,58],"account",[33,111,112],{},"Basically, you have bankers and clients. Clients can have accounts with bankers. Bankers can probably have account with other bankers, and anyone can be friends with anyone.",[33,114,115],{},"Now we might want to consider this whole thing as one big network. If that is the case, there is nothing special to do: by default, the NW extension primitives consider all turtles and all links to be part of the current network.",[33,117,118,119,122],{},"We could also, however, be only interested in a subset of the network. Maybe we want to consider only friendship relations. Furthermore, maybe we want to consider only the friendships ",[37,120,121],{},"between bankers",". After all, having a very high centrality in a network of banker friendships is very different from having a high centrality in a network of client friendships.",[33,124,125,126,129,130,133,134,136,137,139,140,144,145,151,152,155],{},"To specify such networks, we need to tell the extension ",[37,127,128],{},"both"," which turtles ",[37,131,132],{},"and"," which links we are interested in. All the turtles from the specified set of turtles will be included in the network, and only the links from the specified set of links that are between turtles of the specified set will be included. For example, if you ask for ",[45,135,59],{}," and ",[45,138,91],{},", even the lonely bankers with no friends will be included, but friendship links between bankers and clients will ",[141,142,143],"strong",{},"not"," be included. The way to tell the extension about this is with the ",[16,146,148],{"href":147},"/nw/set-context",[45,149,150],{},"nw:set-context"," primitive, which you must call ",[37,153,154],{},"prior"," to doing any operations on a network.",[33,157,158],{},"Some examples:",[160,161,162,180,194,208,222],"ul",{},[163,164,165,179],"li",{},[45,166,167,60,170,60,175],{},[48,168,150],{"className":169},[51,58],[48,171,174],{"className":172},[51,173],"reporter","turtles",[48,176,178],{"className":177},[51,173],"links"," will give you everything: bankers and clients, friendships and accounts, as one big network.",[163,181,182,193],{},[45,183,184,60,187,60,190],{},[48,185,150],{"className":186},[51,58],[48,188,174],{"className":189},[51,173],[48,191,91],{"className":192},[51,58]," will give you all the bankers and clients and friendships between any of them.",[163,195,196,207],{},[45,197,198,60,201,60,204],{},[48,199,150],{"className":200},[51,58],[48,202,59],{"className":203},[51,58],[48,205,91],{"className":206},[51,58]," will give you all the bankers, and only friendships between bankers.",[163,209,210,221],{},[45,211,212,60,215,60,218],{},[48,213,150],{"className":214},[51,58],[48,216,59],{"className":217},[51,58],[48,219,178],{"className":220},[51,173]," will give you all the bankers, and any links between them, whether these links are friendships or accounts.",[163,223,224,235],{},[45,225,226,60,229,60,232],{},[48,227,150],{"className":228},[51,58],[48,230,75],{"className":231},[51,58],[48,233,105],{"className":234},[51,58]," will give you all the clients, and accounts between each other, but since in our fictional example clients can only have accounts with bankers, this will be a completely disconnected network.",[237,238,241],"h3",{"id":239,"className":240},"special-agentsets-vs-normal-agentsets",[14],[16,242,245],{"className":243,"href":244},[19],"#special-agentsets-vs-normal-agentsets","Special agentsets vs normal agentsets",[33,247,248,249,251,252,258],{},"It must be noted that NetLogo has two types of agentsets that behave slightly differently, and that this has an impact on the way ",[45,250,150],{}," works. We will say a few words about these concepts here but, for a thorough understanding, it is highly recommended that you read ",[16,253,257],{"href":254,"rel":255},"http://ccl.northwestern.edu/netlogo/docs/programming.html#agentsets",[256],"nofollow","the section on agentsets in the NetLogo programming guide",".",[33,260,261,262,264,265,267,268,270,271,273,274,276,277,279,280,283,284,305,306,136,309,312],{},"The “special” agentsets in NetLogo are ",[45,263,174],{},", ",[45,266,178],{}," and the different “breed” agentsets. What is special about them is that they can grow: if you create a new turtle, it will be added to the ",[45,269,174],{}," agentset. If you have a ",[45,272,59],{}," breed and you create a new banker, it will be added to the ",[45,275,59],{}," agentset and to the ",[45,278,174],{}," agentset. Same goes for links. Other agentsets, such as those created with the ",[45,281,282],{},"with"," primitive (e.g., ",[45,285,286,60,289,54,292,60,296,60,300,65],{},[48,287,174],{"className":288},[51,173],[48,290,282],{"className":291},[51,173],[48,293,295],{"className":294},[51,173],"color",[48,297,299],{"className":298},[51,173],"=",[48,301,304],{"className":302},[51,303],"constant","red",") or the ",[45,307,308],{},"turtle-set",[45,310,311],{},"link-set"," primitives) are never added to. The content of normal agentsets will only change if the agents that they contain die.",[33,314,315,316,320],{},"To show how different types of agentsets interact with ",[16,317,318],{"href":147},[45,319,150],{},", let’s create a very simple network:",[42,322,323],{},[45,324,325,330,332,60,336,54,341,60,345,60,349,65],{},[48,326,329],{"className":327},[51,328],"command","clear-all",[70,331],{},[48,333,335],{"className":334},[51,328],"create-turtles",[48,337,340],{"className":338},[51,339],"number","3",[48,342,344],{"className":343},[51,328],"create-links-with",[48,346,348],{"className":347},[51,173],"other",[48,350,174],{"className":351},[51,173],[33,353,354,355,136,357,359,360,366],{},"Let’s set the context to ",[45,356,174],{},[45,358,178],{}," (which is the default anyway) and use ",[16,361,363],{"href":362},"/nw/get-context",[45,364,365],{},"nw:get-context"," to see what we have:",[42,368,369],{},[45,370,371,60,374,60,377,380,382,60,386,60,390,60,394],{},[48,372,150],{"className":373},[51,58],[48,375,174],{"className":376},[51,173],[48,378,178],{"className":379},[51,173],[70,381],{},[48,383,385],{"className":384},[51,328],"show",[48,387,389],{"className":388},[51,173],"map",[48,391,393],{"className":392},[51,173],"sort",[48,395,365],{"className":396},[51,58],[33,398,399],{},"We get all three turtles and all three links:",[42,401,402],{},[45,403,404,405,60,409,413,414,60,417,413,421,60,424,428,429,60,433,60,436,413,439,60,442,60,445,413,448,60,451,60,454,457],{},"[[(",[48,406,408],{"className":407},[51,173],"turtle",[48,410,412],{"className":411},[51,339],"0",") (",[48,415,408],{"className":416},[51,173],[48,418,420],{"className":419},[51,339],"1",[48,422,408],{"className":423},[51,173],[48,425,427],{"className":426},[51,339],"2",")] [(",[48,430,432],{"className":431},[51,173],"link",[48,434,412],{"className":435},[51,339],[48,437,420],{"className":438},[51,339],[48,440,432],{"className":441},[51,173],[48,443,412],{"className":444},[51,339],[48,446,427],{"className":447},[51,339],[48,449,432],{"className":450},[51,173],[48,452,420],{"className":453},[51,339],[48,455,427],{"className":456},[51,339],")]]",[33,459,460],{},"Now let’s kill one turtle:",[42,462,463],{},[45,464,465,60,469,60,473,54,476,65,480,482,60,485,60,488,60,491],{},[48,466,468],{"className":467},[51,328],"ask",[48,470,472],{"className":471},[51,173],"one-of",[48,474,174],{"className":475},[51,173],[48,477,479],{"className":478},[51,328],"die",[70,481],{},[48,483,385],{"className":484},[51,328],[48,486,389],{"className":487},[51,173],[48,489,393],{"className":490},[51,173],[48,492,365],{"className":493},[51,58],[33,495,496],{},"As expected, the context is updated to reflect the death of the turtle and of the two links that died with it:",[42,498,499],{},[45,500,404,501,60,504,413,507,60,510,428,513,60,516,60,519,457],{},[48,502,408],{"className":503},[51,173],[48,505,412],{"className":506},[51,339],[48,508,408],{"className":509},[51,173],[48,511,420],{"className":512},[51,339],[48,514,432],{"className":515},[51,173],[48,517,412],{"className":518},[51,339],[48,520,420],{"className":521},[51,339],[33,523,524],{},"What if we now create a new turtle?",[42,526,527],{},[45,528,529,60,532,535,537,60,540,60,543,60,546],{},[48,530,335],{"className":531},[51,328],[48,533,420],{"className":534},[51,339],[70,536],{},[48,538,385],{"className":539},[51,328],[48,541,389],{"className":542},[51,173],[48,544,393],{"className":545},[51,173],[48,547,365],{"className":548},[51,58],[33,550,551,552,554],{},"Since our context is using the special ",[45,553,174],{}," agentset, the new turtle is automatically added:",[42,556,557],{},[45,558,404,559,60,562,413,565,60,568,413,571,60,574,428,577,60,580,60,583,457],{},[48,560,408],{"className":561},[51,173],[48,563,412],{"className":564},[51,339],[48,566,408],{"className":567},[51,173],[48,569,420],{"className":570},[51,339],[48,572,408],{"className":573},[51,173],[48,575,340],{"className":576},[51,339],[48,578,432],{"className":579},[51,173],[48,581,412],{"className":582},[51,339],[48,584,420],{"className":585},[51,339],[33,587,588],{},"Now let’s demonstrate how it works with normal agentsets. We start over with a new network of red turtles:",[42,590,591],{},[45,592,593,596,598,60,601,604,605,607,608,60,611,60,614,617,607,619,60,623,60,626,629,631],{},[48,594,329],{"className":595},[51,328],[70,597],{},[48,599,335],{"className":600},[51,328],[48,602,340],{"className":603},[51,339]," [",[70,606],{},"  ",[48,609,344],{"className":610},[51,328],[48,612,348],{"className":613},[51,173],[48,615,174],{"className":616},[51,173],[70,618],{},[48,620,622],{"className":621},[51,328],"set",[48,624,295],{"className":625},[51,173],[48,627,304],{"className":628},[51,303],[70,630],{},"]",[33,633,634,635,136,653],{},"And we set the context to ",[45,636,637,60,640,54,643,60,646,60,649,652],{},[48,638,174],{"className":639},[51,173],[48,641,282],{"className":642},[51,173],[48,644,295],{"className":645},[51,173],[48,647,299],{"className":648},[51,173],[48,650,304],{"className":651},[51,303]," ])",[45,654,178],{},[42,656,657],{},[45,658,659,662,663,60,666,54,669,60,672,60,675,678,679,682,684,60,687,60,690,60,693],{},[48,660,150],{"className":661},[51,58]," (",[48,664,174],{"className":665},[51,173],[48,667,282],{"className":668},[51,173],[48,670,295],{"className":671},[51,173],[48,673,299],{"className":674},[51,173],[48,676,304],{"className":677},[51,303]," ]) ",[48,680,178],{"className":681},[51,173],[70,683],{},[48,685,385],{"className":686},[51,328],[48,688,389],{"className":689},[51,173],[48,691,393],{"className":692},[51,173],[48,694,365],{"className":695},[51,58],[33,697,698],{},"Since all turtles are red, we get everything in our context:",[42,700,701],{},[45,702,404,703,60,706,413,709,60,712,413,715,60,718,428,721,60,724,60,727,413,730,60,733,60,736,413,739,60,742,60,745,457],{},[48,704,408],{"className":705},[51,173],[48,707,412],{"className":708},[51,339],[48,710,408],{"className":711},[51,173],[48,713,420],{"className":714},[51,339],[48,716,408],{"className":717},[51,173],[48,719,427],{"className":720},[51,339],[48,722,432],{"className":723},[51,173],[48,725,412],{"className":726},[51,339],[48,728,420],{"className":729},[51,339],[48,731,432],{"className":732},[51,173],[48,734,412],{"className":735},[51,339],[48,737,427],{"className":738},[51,339],[48,740,432],{"className":741},[51,173],[48,743,420],{"className":744},[51,339],[48,746,427],{"className":747},[51,339],[33,749,750],{},"But what if we ask one of them to turn blue?",[42,752,753],{},[45,754,755,60,758,60,761,54,764,60,767,60,770,65,774,776,60,779,60,782,60,785],{},[48,756,468],{"className":757},[51,328],[48,759,472],{"className":760},[51,173],[48,762,174],{"className":763},[51,173],[48,765,622],{"className":766},[51,328],[48,768,295],{"className":769},[51,173],[48,771,773],{"className":772},[51,303],"blue",[70,775],{},[48,777,385],{"className":778},[51,328],[48,780,389],{"className":781},[51,173],[48,783,393],{"className":784},[51,173],[48,786,365],{"className":787},[51,58],[33,789,790],{},"No change. The agentset used in our context remains unaffected:",[42,792,793],{},[45,794,404,795,60,798,413,801,60,804,413,807,60,810,428,813,60,816,60,819,413,822,60,825,60,828,413,831,60,834,60,837,457],{},[48,796,408],{"className":797},[51,173],[48,799,412],{"className":800},[51,339],[48,802,408],{"className":803},[51,173],[48,805,420],{"className":806},[51,339],[48,808,408],{"className":809},[51,173],[48,811,427],{"className":812},[51,339],[48,814,432],{"className":815},[51,173],[48,817,412],{"className":818},[51,339],[48,820,420],{"className":821},[51,339],[48,823,432],{"className":824},[51,173],[48,826,412],{"className":827},[51,339],[48,829,427],{"className":830},[51,339],[48,832,432],{"className":833},[51,173],[48,835,420],{"className":836},[51,339],[48,838,427],{"className":839},[51,339],[33,841,842],{},"If we kill one of them, however…",[42,844,845],{},[45,846,847,60,850,60,853,54,856,65,859,861,60,864,60,867,60,870],{},[48,848,468],{"className":849},[51,328],[48,851,472],{"className":852},[51,173],[48,854,174],{"className":855},[51,173],[48,857,479],{"className":858},[51,328],[70,860],{},[48,862,385],{"className":863},[51,328],[48,865,389],{"className":866},[51,173],[48,868,393],{"className":869},[51,173],[48,871,365],{"className":872},[51,58],[33,874,875],{},"It gets removed from the set:",[42,877,878],{},[45,879,404,880,60,883,413,886,60,889,428,892,60,895,60,898,457],{},[48,881,408],{"className":882},[51,173],[48,884,412],{"className":885},[51,339],[48,887,408],{"className":888},[51,173],[48,890,427],{"className":891},[51,339],[48,893,432],{"className":894},[51,173],[48,896,412],{"className":897},[51,339],[48,899,427],{"className":900},[51,339],[33,902,903],{},"What if we add a new red turtle?",[42,905,906],{},[45,907,908,60,911,54,914,60,917,60,920,65,923,925,60,928,60,931,60,934],{},[48,909,335],{"className":910},[51,328],[48,912,420],{"className":913},[51,339],[48,915,622],{"className":916},[51,328],[48,918,295],{"className":919},[51,173],[48,921,304],{"className":922},[51,303],[70,924],{},[48,926,385],{"className":927},[51,328],[48,929,389],{"className":930},[51,173],[48,932,393],{"className":933},[51,173],[48,935,365],{"className":936},[51,58],[33,938,939],{},"Nope:",[42,941,942],{},[45,943,404,944,60,947,413,950,60,953,428,956,60,959,60,962,457],{},[48,945,408],{"className":946},[51,173],[48,948,412],{"className":949},[51,339],[48,951,408],{"className":952},[51,173],[48,954,427],{"className":955},[51,339],[48,957,432],{"className":958},[51,173],[48,960,412],{"className":961},[51,339],[48,963,427],{"className":964},[51,339],[23,966,969],{"id":967,"className":968},"a-note-regarding-floating-point-calculations",[14],[16,970,973],{"className":971,"href":972},[19],"#a-note-regarding-floating-point-calculations","A note regarding floating point calculations",[33,975,976,977,982,983,988,989,997,998,1001,1002,1007],{},"Neither ",[16,978,981],{"href":979,"rel":980},"https://github.com/jgrapht",[256],"JGraphT"," nor ",[16,984,987],{"href":985,"rel":986},"http://jung.sourceforge.net/",[256],"Jung",", the two network libraries that we use internally, use ",[16,990,993,996],{"href":991,"rel":992},"https://en.wikipedia.org/wiki/Strictfp",[256],[45,994,995],{},"strictfp"," floating point calculations",". This does mean that exact reproducibility of results involving floating point calculations ",[37,999,1000],{},"between different hardware architectures"," is not fully guaranteed. (NetLogo itself ",[16,1003,1006],{"href":1004,"rel":1005},"http://ccl.northwestern.edu/netlogo/docs/faq.html#are-netlogo-models-runs-scientifically-reproducible",[256],"always uses strict math"," so this only applies to some primitives of the NW extension.)",[23,1009,1012],{"id":1010,"className":1011},"performance",[14],[16,1013,1016],{"className":1014,"href":1015},[19],"#performance","Performance",[33,1018,1019,1020,136,1028,1037,1038,1047,1048,1056,1057,1065,1066,136,1074,1082,1083,136,1091,1099,1100,136,1108,1116],{},"In order to be fast in as many circumstances as possible, the NW extension tries hard to never calculate things twice. It remembers all paths, distances, and centralities that it calculates. So, while the first time you ask for the distance between ",[45,1021,1022,60,1025],{},[48,1023,408],{"className":1024},[51,173],[48,1026,412],{"className":1027},[51,339],[45,1029,1030,60,1033],{},[48,1031,408],{"className":1032},[51,173],[48,1034,1036],{"className":1035},[51,339],"3782"," may take some time, after that, it should be almost instantaneous. Furthermore, it keeps track of values it just happened to calculate along the way. For example, if ",[45,1039,1040,60,1043],{},[48,1041,408],{"className":1042},[51,173],[48,1044,1046],{"className":1045},[51,339],"297"," is closer to ",[45,1049,1050,60,1053],{},[48,1051,408],{"className":1052},[51,173],[48,1054,412],{"className":1055},[51,339]," than ",[45,1058,1059,60,1062],{},[48,1060,408],{"className":1061},[51,173],[48,1063,1036],{"className":1064},[51,339]," is, it may just happen to figure out the distance between ",[45,1067,1068,60,1071],{},[48,1069,408],{"className":1070},[51,173],[48,1072,412],{"className":1073},[51,339],[45,1075,1076,60,1079],{},[48,1077,408],{"className":1078},[51,173],[48,1080,1046],{"className":1081},[51,339]," while it figures out the distance between ",[45,1084,1085,60,1088],{},[48,1086,408],{"className":1087},[51,173],[48,1089,412],{"className":1090},[51,339],[45,1092,1093,60,1096],{},[48,1094,408],{"className":1095},[51,173],[48,1097,1036],{"className":1098},[51,339],". It will remember this value, so that if you ask it for the distance between ",[45,1101,1102,60,1105],{},[48,1103,408],{"className":1104},[51,173],[48,1106,412],{"className":1107},[51,339],[45,1109,1110,60,1113],{},[48,1111,408],{"className":1112},[51,173],[48,1114,1046],{"className":1115},[51,339],", it doesn’t have to do all that work again.",[33,1118,1119],{},"There are a few circumstances where the NW extension has to forget things. If the network changes at all (you add turtles or links, or remove turtles or links), it has to forget everything. For weighted primitives, if the value of the weight variable changes for any of the links in the network, it will forget the values associated with that weight variable.",[33,1121,1122],{},"If you’re working on a network that can change regularly, try to do all your network calculations at once, then all your network changes at once. The more your interweave network calculations and network changes, the more the NW extension will have to recalculate things. For example, if you have a traffic model, and cars need to figure out the shortest path to their destination based on the traffic each tick, have all the cars find their shortest paths, then change the network weights to account for how traffic has changed.",[33,1124,1125,1126,1146],{},"There may be rare occasions in which you don’t want the NW extension to remember values. For example, if you’re working on an extremely large network, remembering all those values may take more memory than you have. In that case, you can just call ",[45,1127,1128,662,1131,60,1135,413,1138,60,1142,1145],{},[48,1129,150],{"className":1130},[51,58],[48,1132,1134],{"className":1133},[51,173],"first",[48,1136,365],{"className":1137},[51,58],[48,1139,1141],{"className":1140},[51,173],"last",[48,1143,365],{"className":1144},[51,58],")"," to force the NW extension to immediately forget everything.",[23,1148,1151],{"id":1149,"className":1150},"primitives",[14],[16,1152,1155],{"className":1153,"href":1154},[19],"#primitives","Primitives",[33,1157,1158,1159,258],{},"Looking for the primitive reference for the Networks extension? You can find ",[16,1160,1162],{"href":1161},"/nw/dictionary","the full reference here",[237,1164,1167],{"id":1165,"className":1166},"centrality-measures",[14],[16,1168,1171],{"className":1169,"href":1170},[19],"#centrality-measures","Centrality Measures",[1173,1174,1176,1177,1184,1185,1190,1191,1184,1198,1190,1201,1184,1208,1190,1211,1184,1218,1190,1221],"div",{"id":1175},"centrality","\n  ",[16,1178,1181],{"className":1179,"href":1180},[45],"#betweenness-centrality",[45,1182,1183],{},"nw:betweenness-centrality","\n   ",[48,1186,1189],{"className":1187},[1188],"font-bold"," · "," \n  ",[16,1192,1195],{"className":1193,"href":1194},[45],"#eigenvector-centrality",[45,1196,1197],{},"nw:eigenvector-centrality",[48,1199,1189],{"className":1200},[1188],[16,1202,1205],{"className":1203,"href":1204},[45],"#page-rank",[45,1206,1207],{},"nw:page-rank",[48,1209,1189],{"className":1210},[1188],[16,1212,1215],{"className":1213,"href":1214},[45],"#closeness-centrality",[45,1216,1217],{},"nw:closeness-centrality",[48,1219,1189],{"className":1220},[1188],[16,1222,1225],{"className":1223,"href":1224},[45],"#weighted-closeness-centrality",[45,1226,1227],{},"nw:weighted-closeness-centrality",[237,1229,1232],{"id":1230,"className":1231},"clusterercommunity-detection",[14],[16,1233,1236],{"className":1234,"href":1235},[19],"#clusterercommunity-detection","Clusterer/Community Detection",[1173,1238,1176,1240,1184,1247,1190,1250,1184,1257,1190,1260,1184,1267,1190,1270,1184,1277,1190,1280],{"id":1239},"clusterer",[16,1241,1244],{"className":1242,"href":1243},[45],"#bicomponent-clusters",[45,1245,1246],{},"nw:bicomponent-clusters",[48,1248,1189],{"className":1249},[1188],[16,1251,1254],{"className":1252,"href":1253},[45],"#weak-component-clusters",[45,1255,1256],{},"nw:weak-component-clusters",[48,1258,1189],{"className":1259},[1188],[16,1261,1264],{"className":1262,"href":1263},[45],"#louvain-communities",[45,1265,1266],{},"nw:louvain-communities",[48,1268,1189],{"className":1269},[1188],[16,1271,1274],{"className":1272,"href":1273},[45],"#maximal-cliques",[45,1275,1276],{},"nw:maximal-cliques",[48,1278,1189],{"className":1279},[1188],[16,1281,1284],{"className":1282,"href":1283},[45],"#biggest-maximal-cliques",[45,1285,1286],{},"nw:biggest-maximal-cliques",[237,1288,1291],{"id":1289,"className":1290},"clustering-measures",[14],[16,1292,1295],{"className":1293,"href":1294},[19],"#clustering-measures","Clustering Measures",[1173,1297,1176,1299,1184,1306,1190,1309],{"id":1298},"clustering",[16,1300,1303],{"className":1301,"href":1302},[45],"#clustering-coefficient",[45,1304,1305],{},"nw:clustering-coefficient",[48,1307,1189],{"className":1308},[1188],[16,1310,1313],{"className":1311,"href":1312},[45],"#modularity",[45,1314,1315],{},"nw:modularity",[237,1317,1320],{"id":1318,"className":1319},"context-management",[14],[16,1321,1324],{"className":1322,"href":1323},[19],"#context-management","Context Management",[1173,1326,1176,1328,1184,1334,1190,1337,1184,1343,1190,1346],{"id":1327},"context",[16,1329,1332],{"className":1330,"href":1331},[45],"#set-context",[45,1333,150],{},[48,1335,1189],{"className":1336},[1188],[16,1338,1341],{"className":1339,"href":1340},[45],"#get-context",[45,1342,365],{},[48,1344,1189],{"className":1345},[1188],[16,1347,1350],{"className":1348,"href":1349},[45],"#with-context",[45,1351,1352],{},"nw:with-context",[237,1354,1357],{"id":1355,"className":1356},"generators",[14],[16,1358,1361],{"className":1359,"href":1360},[19],"#generators","Generators",[1173,1363,1176,1365,1184,1372,1190,1375,1184,1382,1190,1385,1184,1392,1190,1395,1184,1402,1190,1405,1184,1412,1190,1415,1184,1422,1190,1425,1184,1432,1190,1435],{"id":1364},"generator",[16,1366,1369],{"className":1367,"href":1368},[45],"#generate-preferential-attachment",[45,1370,1371],{},"nw:generate-preferential-attachment",[48,1373,1189],{"className":1374},[1188],[16,1376,1379],{"className":1377,"href":1378},[45],"#generate-random",[45,1380,1381],{},"nw:generate-random",[48,1383,1189],{"className":1384},[1188],[16,1386,1389],{"className":1387,"href":1388},[45],"#generate-watts-strogatz",[45,1390,1391],{},"nw:generate-watts-strogatz",[48,1393,1189],{"className":1394},[1188],[16,1396,1399],{"className":1397,"href":1398},[45],"#generate-small-world",[45,1400,1401],{},"nw:generate-small-world",[48,1403,1189],{"className":1404},[1188],[16,1406,1409],{"className":1407,"href":1408},[45],"#generate-lattice-2d",[45,1410,1411],{},"nw:generate-lattice-2d",[48,1413,1189],{"className":1414},[1188],[16,1416,1419],{"className":1417,"href":1418},[45],"#generate-ring",[45,1420,1421],{},"nw:generate-ring",[48,1423,1189],{"className":1424},[1188],[16,1426,1429],{"className":1427,"href":1428},[45],"#generate-star",[45,1430,1431],{},"nw:generate-star",[48,1433,1189],{"className":1434},[1188],[16,1436,1439],{"className":1437,"href":1438},[45],"#generate-wheel",[45,1440,1441],{},"nw:generate-wheel",[237,1443,1446],{"id":1444,"className":1445},"import-and-export",[14],[16,1447,1450],{"className":1448,"href":1449},[19],"#import-and-export","Import and Export",[1173,1452,1176,1454,1184,1461,1190,1464,1184,1471,1190,1474,1184,1481,1190,1484,1184,1491,1190,1494,1184,1501,1190,1504],{"id":1453},"io",[16,1455,1458],{"className":1456,"href":1457},[45],"#save-matrix",[45,1459,1460],{},"nw:save-matrix",[48,1462,1189],{"className":1463},[1188],[16,1465,1468],{"className":1466,"href":1467},[45],"#load-matrix",[45,1469,1470],{},"nw:load-matrix",[48,1472,1189],{"className":1473},[1188],[16,1475,1478],{"className":1476,"href":1477},[45],"#save-graphml",[45,1479,1480],{},"nw:save-graphml",[48,1482,1189],{"className":1483},[1188],[16,1485,1488],{"className":1486,"href":1487},[45],"#load-graphml",[45,1489,1490],{},"nw:load-graphml",[48,1492,1189],{"className":1493},[1188],[16,1495,1498],{"className":1496,"href":1497},[45],"#load",[45,1499,1500],{},"nw:load",[48,1502,1189],{"className":1503},[1188],[16,1505,1508],{"className":1506,"href":1507},[45],"#save",[45,1509,1510],{},"nw:save",[237,1512,1515],{"id":1513,"className":1514},"path-and-distance",[14],[16,1516,1519],{"className":1517,"href":1518},[19],"#path-and-distance","Path and Distance",[1173,1521,1176,1523,1184,1530,1190,1533,1184,1540,1190,1543,1184,1550,1190,1553,1184,1560,1190,1563,1184,1570,1190,1573,1184,1580,1190,1583,1184,1590,1190,1593,1184,1600,1190,1603,1184,1610,1190,1613],{"id":1522},"path",[16,1524,1527],{"className":1525,"href":1526},[45],"#turtles-in-radius",[45,1528,1529],{},"nw:turtles-in-radius",[48,1531,1189],{"className":1532},[1188],[16,1534,1537],{"className":1535,"href":1536},[45],"#turtles-in-reverse-radius",[45,1538,1539],{},"nw:turtles-in-reverse-radius",[48,1541,1189],{"className":1542},[1188],[16,1544,1547],{"className":1545,"href":1546},[45],"#distance-to",[45,1548,1549],{},"nw:distance-to",[48,1551,1189],{"className":1552},[1188],[16,1554,1557],{"className":1555,"href":1556},[45],"#weighted-distance-to",[45,1558,1559],{},"nw:weighted-distance-to",[48,1561,1189],{"className":1562},[1188],[16,1564,1567],{"className":1565,"href":1566},[45],"#path-to",[45,1568,1569],{},"nw:path-to",[48,1571,1189],{"className":1572},[1188],[16,1574,1577],{"className":1575,"href":1576},[45],"#turtles-on-path-to",[45,1578,1579],{},"nw:turtles-on-path-to",[48,1581,1189],{"className":1582},[1188],[16,1584,1587],{"className":1585,"href":1586},[45],"#weighted-path-to",[45,1588,1589],{},"nw:weighted-path-to",[48,1591,1189],{"className":1592},[1188],[16,1594,1597],{"className":1595,"href":1596},[45],"#turtles-on-weighted-path-to",[45,1598,1599],{},"nw:turtles-on-weighted-path-to",[48,1601,1189],{"className":1602},[1188],[16,1604,1607],{"className":1605,"href":1606},[45],"#mean-path-length",[45,1608,1609],{},"nw:mean-path-length",[48,1611,1189],{"className":1612},[1188],[16,1614,1617],{"className":1615,"href":1616},[45],"#mean-weighted-path-length",[45,1618,1619],{},"nw:mean-weighted-path-length",[237,1621,1624],{"id":1622,"className":1623},"all-primitives",[14],[16,1625,1628],{"className":1626,"href":1627},[19],"#all-primitives","All Primitives",[1173,1630,1176,1634,1176,1640,1661,1673,1676],{"className":1631,"id":1633},[1632],"dict_entry","set-context",[237,1635,1637,1638,1176],{"id":1636},"nwset-context","\n    ",[16,1639,150],{"href":1331},[1641,1642,1645],"h4",{"id":1643,"className":1644},"nwset-context-turtleset-linkset",[14],[16,1646,1637,1649,1176],{"className":1647,"href":1648},[19],"#----nwset-context-turtleset-linkset--",[48,1650,1653,1654,60,1658],{"className":1651},[1652],"prim_example","nw:set-context ",[1655,1656,1657],"i",{},"turtleset",[1655,1659,1660],{},"linkset",[33,1662,1663,1664,1666,1667,1669,1670,1672],{},"Specifies the set of turtles and the set of links that the extension will consider to be the current graph. All the turtles from ",[37,1665,1657],{}," and all the links from ",[37,1668,1660],{}," that connect two turtles from ",[37,1671,1657],{}," will be included.",[33,1674,1675],{},"This context is used by all other primitives (unless specified otherwise) until a new context is specified. (At the moment, only the generator primitives and the file input primitives are exceptions to this rule.)",[33,1677,1678,1679,1682,1683,258],{},"See ",[16,1680,1681],{"href":30},"the usage section"," for a much more detailed explanation of ",[45,1684,150],{},[1173,1686,1176,1689,1176,1694,1705,1708,1723,1757,1765,1810,1821,1888,1894,1950,1953,2009,2025,2071,2077,2393,2396],{"className":1687,"id":1688},[1632],"get-context",[237,1690,1637,1692,1176],{"id":1691},"nwget-context",[16,1693,365],{"href":1340},[1641,1695,1698],{"id":1696,"className":1697},"nwget-context-1",[14],[16,1699,1637,1702,1176],{"className":1700,"href":1701},[19],"#----nwget-context---1",[48,1703,365],{"className":1704},[1652],[33,1706,1707],{},"Reports the content of the current graph context as a list containing two agentsets: the agentset of turtles that are part of the context and the agentset of links that are part of the context.",[33,1709,1710,1711,136,1713,264,1715,1717,1718,136,1720,1722],{},"Let’s say we start with a blank slate and the default context consisting of ",[45,1712,174],{},[45,1714,178],{},[45,1716,365],{}," will report a list the special ",[45,1719,174],{},[45,1721,178],{}," breed agentsets:",[42,1724,1725],{},[45,1726,1727,60,1731,1734,1736,60,1739,60,1742,1745,1747,604,1751,60,1754,631],{},[48,1728,1730],{"className":1729},[51,58],"observer>",[48,1732,329],{"className":1733},[51,328],[70,1735],{},[48,1737,1730],{"className":1738},[51,58],[48,1740,385],{"className":1741},[51,328],[48,1743,365],{"className":1744},[51,58],[70,1746],{},[48,1748,1750],{"className":1749},[51,58],"observer:",[48,1752,174],{"className":1753},[51,173],[48,1755,178],{"className":1756},[51,173],[33,1758,1759,1760,136,1762,1764],{},"If we add some turtles and links to our context, we’ll still see the same thing, even though ",[45,1761,174],{},[45,1763,178],{}," have internally grown:",[42,1766,1767],{},[45,1768,1769,60,1772,60,1776,54,1779,60,1782,60,1785,65,1788,1790,60,1793,60,1796,1799,1801,604,1804,60,1807,631],{},[48,1770,1730],{"className":1771},[51,58],[48,1773,1775],{"className":1774},[51,328],"crt",[48,1777,427],{"className":1778},[51,339],[48,1780,344],{"className":1781},[51,328],[48,1783,348],{"className":1784},[51,173],[48,1786,174],{"className":1787},[51,173],[70,1789],{},[48,1791,1730],{"className":1792},[51,58],[48,1794,385],{"className":1795},[51,328],[48,1797,365],{"className":1798},[51,58],[70,1800],{},[48,1802,1750],{"className":1803},[51,58],[48,1805,174],{"className":1806},[51,173],[48,1808,178],{"className":1809},[51,173],[33,1811,1812,1813,264,1815,1817,1818,1820],{},"If you had set your context to normal agentsets instead (built with ",[45,1814,308],{},[45,1816,311],{}," or ",[45,1819,282],{},") here is what you would see:",[42,1822,1823],{},[45,1824,1825,60,1828,1831,1833,60,1836,60,1839,60,1842,60,1845,60,1848,1851,1853,60,1856,60,1859,1862,1864,1867,1868,60,1872,60,1875,413,1878,60,1881,60,1884,1887],{},[48,1826,1730],{"className":1827},[51,58],[48,1829,329],{"className":1830},[51,328],[70,1832],{},[48,1834,1730],{"className":1835},[51,58],[48,1837,150],{"className":1838},[51,58],[48,1840,308],{"className":1841},[51,173],[48,1843,174],{"className":1844},[51,173],[48,1846,311],{"className":1847},[51,173],[48,1849,178],{"className":1850},[51,173],[70,1852],{},[48,1854,1730],{"className":1855},[51,58],[48,1857,385],{"className":1858},[51,328],[48,1860,365],{"className":1861},[51,58],[70,1863],{},[48,1865,1750],{"className":1866},[51,58]," [(",[48,1869,1871],{"className":1870},[51,58],"agentset,",[48,1873,412],{"className":1874},[51,339],[48,1876,174],{"className":1877},[51,173],[48,1879,1871],{"className":1880},[51,58],[48,1882,412],{"className":1883},[51,339],[48,1885,178],{"className":1886},[51,173],")]",[33,1889,1890,1891,1893],{},"If you then create new turtles and links, they are not added to the context because normal agentsets don’t grow (see ",[16,1892,245],{"href":244},"):",[42,1895,1896],{},[45,1897,1898,60,1901,60,1904,54,1907,60,1910,60,1913,65,1916,1918,60,1921,60,1924,1927,1929,1867,1932,60,1935,60,1938,413,1941,60,1944,60,1947,1887],{},[48,1899,1730],{"className":1900},[51,58],[48,1902,1775],{"className":1903},[51,328],[48,1905,427],{"className":1906},[51,339],[48,1908,344],{"className":1909},[51,328],[48,1911,348],{"className":1912},[51,173],[48,1914,174],{"className":1915},[51,173],[70,1917],{},[48,1919,1730],{"className":1920},[51,58],[48,1922,385],{"className":1923},[51,328],[48,1925,365],{"className":1926},[51,58],[70,1928],{},[48,1930,1750],{"className":1931},[51,58],[48,1933,1871],{"className":1934},[51,58],[48,1936,412],{"className":1937},[51,339],[48,1939,174],{"className":1940},[51,173],[48,1942,1871],{"className":1943},[51,58],[48,1945,412],{"className":1946},[51,339],[48,1948,178],{"className":1949},[51,173],[33,1951,1952],{},"But if you construct new agentsets and set the context to them, your new agents will be there:",[42,1954,1955],{},[45,1956,1957,60,1960,60,1963,60,1966,60,1969,60,1972,1975,1977,60,1980,60,1983,1986,1988,1867,1991,60,1994,60,1997,413,2000,60,2003,60,2006,1887],{},[48,1958,1730],{"className":1959},[51,58],[48,1961,150],{"className":1962},[51,58],[48,1964,308],{"className":1965},[51,173],[48,1967,174],{"className":1968},[51,173],[48,1970,311],{"className":1971},[51,173],[48,1973,178],{"className":1974},[51,173],[70,1976],{},[48,1978,1730],{"className":1979},[51,58],[48,1981,385],{"className":1982},[51,328],[48,1984,365],{"className":1985},[51,58],[70,1987],{},[48,1989,1750],{"className":1990},[51,58],[48,1992,1871],{"className":1993},[51,58],[48,1995,427],{"className":1996},[51,339],[48,1998,174],{"className":1999},[51,173],[48,2001,1871],{"className":2002},[51,58],[48,2004,420],{"className":2005},[51,339],[48,2007,432],{"className":2008},[51,173],[33,2010,2011,2012,136,2018,2024],{},"If you want to see the actual content of your context, it is easy to turn your agentsets into lists that can be nicely displayed. Just use a combination of ",[16,2013,2016],{"href":2014,"rel":2015},"http://ccl.northwestern.edu/netlogo/docs/dictionary.html#map",[256],[45,2017,389],{},[16,2019,2022],{"href":2020,"rel":2021},"http://ccl.northwestern.edu/netlogo/docs/dictionary.html#sort",[256],[45,2023,393],{},":",[42,2026,2027],{},[45,2028,2029,60,2032,60,2035,60,2038,60,2041,2044,2046,2049,2050,60,2053,413,2056,60,2059,428,2062,60,2065,60,2068,457],{},[48,2030,1730],{"className":2031},[51,58],[48,2033,385],{"className":2034},[51,328],[48,2036,389],{"className":2037},[51,173],[48,2039,393],{"className":2040},[51,173],[48,2042,365],{"className":2043},[51,58],[70,2045],{},[48,2047,1750],{"className":2048},[51,58]," [[(",[48,2051,408],{"className":2052},[51,173],[48,2054,412],{"className":2055},[51,339],[48,2057,408],{"className":2058},[51,173],[48,2060,420],{"className":2061},[51,339],[48,2063,432],{"className":2064},[51,173],[48,2066,412],{"className":2067},[51,339],[48,2069,420],{"className":2070},[51,339],[33,2072,2073,2074,2076],{},"Finally, you can use ",[45,2075,365],{}," to store a context that you eventually want to restore:",[42,2078,2079],{},[45,2080,2081,54,2085,65,2089,60,2095,2099,607,2101,2104,607,2106,60,2109,604,2112,2114,2115,60,2118,60,2121,2124,2114,2126,60,2129,60,2132,60,2135,54,2138,60,2141,60,2144,2147,2148,2150,2151,60,2154,60,2157,2161,2163,2164,2166,2167,607,2169,60,2172,604,2175,2114,2177,60,2180,60,2183,2186,2114,2188,60,2191,60,2194,60,2197,54,2200,60,2203,60,2206,2147,2209,2150,2211,60,2214,60,2217,2221,2163,2223,2166,2225,607,2227,60,2230,60,2233,54,2236,60,2239,60,2242,2245,2246,60,2249,54,2252,60,2255,60,2258,65,2261,607,2263,60,2266,60,2269,60,2272,2275,607,2277,60,2281,60,2285,60,2289,60,2292,2295,607,2297,60,2300,60,2304,60,2307,60,2310,2313,607,2315,60,2318,60,2321,54,2324,60,2327,60,2330,2245,2333,60,2336,54,2339,60,2342,60,2345,65,2348,607,2350,60,2353,60,2356,60,2359,2362,607,2364,60,2367,60,2370,2373,607,2375,60,2378,60,2381,60,2384,2387],{},[48,2082,2084],{"className":2083},[51,52],"extensions",[48,2086,2088],{"className":2087},[51,58],"nw",[48,2090,2092,2094],{"className":2091},[51,52],[70,2093],{},"to",[48,2096,2098],{"className":2097},[51,58],"store-and-restore-context",[70,2100],{},[48,2102,329],{"className":2103},[51,328],[70,2105],{},[48,2107,1775],{"className":2108},[51,328],[48,2110,427],{"className":2111},[51,339],[70,2113],{},"    ",[48,2116,622],{"className":2117},[51,328],[48,2119,295],{"className":2120},[51,173],[48,2122,304],{"className":2123},[51,303],[70,2125],{},[48,2127,344],{"className":2128},[51,328],[48,2130,348],{"className":2131},[51,173],[48,2133,174],{"className":2134},[51,173],[48,2136,282],{"className":2137},[51,173],[48,2139,295],{"className":2140},[51,173],[48,2142,299],{"className":2143},[51,173],[48,2145,304],{"className":2146},[51,303]," ] [",[70,2149],{},"      ",[48,2152,622],{"className":2153},[51,328],[48,2155,295],{"className":2156},[51,173],[48,2158,2160],{"className":2159},[51,303],"yellow",[70,2162],{},"    ]",[70,2165],{},"  ]",[70,2168],{},[48,2170,1775],{"className":2171},[51,328],[48,2173,427],{"className":2174},[51,339],[70,2176],{},[48,2178,622],{"className":2179},[51,328],[48,2181,295],{"className":2182},[51,173],[48,2184,773],{"className":2185},[51,303],[70,2187],{},[48,2189,344],{"className":2190},[51,328],[48,2192,348],{"className":2193},[51,173],[48,2195,174],{"className":2196},[51,173],[48,2198,282],{"className":2199},[51,173],[48,2201,295],{"className":2202},[51,173],[48,2204,299],{"className":2205},[51,173],[48,2207,773],{"className":2208},[51,303],[70,2210],{},[48,2212,622],{"className":2213},[51,328],[48,2215,295],{"className":2216},[51,173],[48,2218,2220],{"className":2219},[51,303],"green",[70,2222],{},[70,2224],{},[70,2226],{},[48,2228,150],{"className":2229},[51,58],[48,2231,174],{"className":2232},[51,173],[48,2234,282],{"className":2235},[51,173],[48,2237,295],{"className":2238},[51,173],[48,2240,299],{"className":2241},[51,173],[48,2243,304],{"className":2244},[51,303]," ] ",[48,2247,178],{"className":2248},[51,173],[48,2250,282],{"className":2251},[51,173],[48,2253,295],{"className":2254},[51,173],[48,2256,299],{"className":2257},[51,173],[48,2259,2160],{"className":2260},[51,303],[70,2262],{},[48,2264,385],{"className":2265},[51,328],[48,2267,389],{"className":2268},[51,173],[48,2270,393],{"className":2271},[51,173],[48,2273,365],{"className":2274},[51,58],[70,2276],{},[48,2278,2280],{"className":2279},[51,328],"let",[48,2282,2284],{"className":2283},[51,58],"old-turtles",[48,2286,2288],{"className":2287},[51,173],"item",[48,2290,412],{"className":2291},[51,339],[48,2293,365],{"className":2294},[51,58],[70,2296],{},[48,2298,2280],{"className":2299},[51,328],[48,2301,2303],{"className":2302},[51,58],"old-links",[48,2305,2288],{"className":2306},[51,173],[48,2308,420],{"className":2309},[51,339],[48,2311,365],{"className":2312},[51,58],[70,2314],{},[48,2316,150],{"className":2317},[51,58],[48,2319,174],{"className":2320},[51,173],[48,2322,282],{"className":2323},[51,173],[48,2325,295],{"className":2326},[51,173],[48,2328,299],{"className":2329},[51,173],[48,2331,773],{"className":2332},[51,303],[48,2334,178],{"className":2335},[51,173],[48,2337,282],{"className":2338},[51,173],[48,2340,295],{"className":2341},[51,173],[48,2343,299],{"className":2344},[51,173],[48,2346,2220],{"className":2347},[51,303],[70,2349],{},[48,2351,385],{"className":2352},[51,328],[48,2354,389],{"className":2355},[51,173],[48,2357,393],{"className":2358},[51,173],[48,2360,365],{"className":2361},[51,58],[70,2363],{},[48,2365,150],{"className":2366},[51,58],[48,2368,2284],{"className":2369},[51,58],[48,2371,2303],{"className":2372},[51,58],[70,2374],{},[48,2376,385],{"className":2377},[51,328],[48,2379,389],{"className":2380},[51,173],[48,2382,393],{"className":2383},[51,173],[48,2385,365],{"className":2386},[51,58],[48,2388,2390,2392],{"className":2389},[51,52],[70,2391],{},"end",[33,2394,2395],{},"Here is the result:",[42,2397,2398],{},[45,2399,2400,60,2403,2406,2408,2049,2411,60,2414,413,2417,60,2420,428,2423,60,2426,60,2429,457,2432,2434,2049,2437,60,2440,413,2443,60,2446,428,2449,60,2452,60,2455,457,2458,2460,2049,2463,60,2466,413,2469,60,2472,428,2475,60,2478,60,2481,457],{},[48,2401,1730],{"className":2402},[51,58],[48,2404,2098],{"className":2405},[51,58],[70,2407],{},[48,2409,1750],{"className":2410},[51,58],[48,2412,408],{"className":2413},[51,173],[48,2415,412],{"className":2416},[51,339],[48,2418,408],{"className":2419},[51,173],[48,2421,420],{"className":2422},[51,339],[48,2424,432],{"className":2425},[51,173],[48,2427,412],{"className":2428},[51,339],[48,2430,420],{"className":2431},[51,339],[70,2433],{},[48,2435,1750],{"className":2436},[51,58],[48,2438,408],{"className":2439},[51,173],[48,2441,427],{"className":2442},[51,339],[48,2444,408],{"className":2445},[51,173],[48,2447,340],{"className":2448},[51,339],[48,2450,432],{"className":2451},[51,173],[48,2453,427],{"className":2454},[51,339],[48,2456,340],{"className":2457},[51,339],[70,2459],{},[48,2461,1750],{"className":2462},[51,58],[48,2464,408],{"className":2465},[51,173],[48,2467,412],{"className":2468},[51,339],[48,2470,408],{"className":2471},[51,173],[48,2473,420],{"className":2474},[51,339],[48,2476,432],{"className":2477},[51,173],[48,2479,412],{"className":2480},[51,339],[48,2482,420],{"className":2483},[51,339],[1173,2485,1176,2488,1176,2493,2512,2526,2529,2638],{"className":2486,"id":2487},[1632],"with-context",[237,2489,1637,2491,1176],{"id":2490},"nwwith-context",[16,2492,1352],{"href":1349},[1641,2494,2497],{"id":2495,"className":2496},"nwwith-context-turtleset-linkset-command-block",[14],[16,2498,1637,2501,1176],{"className":2499,"href":2500},[19],"#----nwwith-context-turtleset-linkset-command-block--",[48,2502,2504,2505,60,2507,60,2509],{"className":2503},[1652],"nw:with-context ",[1655,2506,1657],{},[1655,2508,1660],{},[1655,2510,2511],{},"command-block",[33,2513,2514,2515,2517,2518,136,2520,2522,2523,2525],{},"Executes the ",[37,2516,2511],{}," with the context temporarily set to ",[37,2519,1657],{},[37,2521,1660],{},".\nAfter ",[37,2524,2511],{}," finishes running, the previous context will be restored.",[33,2527,2528],{},"For example:",[42,2530,2531],{},[45,2532,2533,60,2536,60,2539,54,2542,60,2545,60,2548,65,2551,2553,60,2556,662,2559,60,2562,60,2565,60,2568,60,2571,413,2574,60,2577,60,2580,60,2583,2586,2587,60,2590,65,2593,2595,1867,2598,60,2601,60,2604,413,2607,60,2610,60,2613,1145,2616,2618,60,2621,60,2624,2627,2629,604,2632,60,2635,631],{},[48,2534,1730],{"className":2535},[51,58],[48,2537,335],{"className":2538},[51,328],[48,2540,340],{"className":2541},[51,339],[48,2543,344],{"className":2544},[51,328],[48,2546,348],{"className":2547},[51,173],[48,2549,174],{"className":2550},[51,173],[70,2552],{},[48,2554,1730],{"className":2555},[51,58],[48,2557,1352],{"className":2558},[51,58],[48,2560,308],{"className":2561},[51,173],[48,2563,408],{"className":2564},[51,173],[48,2566,412],{"className":2567},[51,339],[48,2569,408],{"className":2570},[51,173],[48,2572,420],{"className":2573},[51,339],[48,2575,311],{"className":2576},[51,173],[48,2578,432],{"className":2579},[51,173],[48,2581,412],{"className":2582},[51,339],[48,2584,420],{"className":2585},[51,339],") [ ",[48,2588,385],{"className":2589},[51,328],[48,2591,365],{"className":2592},[51,58],[70,2594],{},[48,2596,1750],{"className":2597},[51,58],[48,2599,1871],{"className":2600},[51,58],[48,2602,427],{"className":2603},[51,339],[48,2605,174],{"className":2606},[51,173],[48,2608,1871],{"className":2609},[51,58],[48,2611,420],{"className":2612},[51,339],[48,2614,432],{"className":2615},[51,173],[70,2617],{},[48,2619,1730],{"className":2620},[51,58],[48,2622,385],{"className":2623},[51,328],[48,2625,365],{"className":2626},[51,58],[70,2628],{},[48,2630,1750],{"className":2631},[51,58],[48,2633,174],{"className":2634},[51,173],[48,2636,178],{"className":2637},[51,173],[33,2639,2640,2641,2644,2645,2647],{},"If you have NW extension code running in two forever buttons or ",[45,2642,2643],{},"loop"," blocks that each need to use different contexts, you should use ",[45,2646,1352],{}," in each to make sure they are operating in the correct context.",[1173,2649,1176,2652,1176,2657,2672,2675,2694,2728,2731,2856,2859,2891],{"className":2650,"id":2651},[1632],"turtles-in-radius",[237,2653,1637,2655,1176],{"id":2654},"nwturtles-in-radius",[16,2656,1529],{"href":1526},[1641,2658,2661],{"id":2659,"className":2660},"nwturtles-in-radius-radius",[14],[16,2662,1637,2665,1176],{"className":2663,"href":2664},[19],"#----nwturtles-in-radius-radius--",[48,2666,2668,2669],{"className":2667},[1652],"nw:turtles-in-radius ",[1655,2670,2671],{},"radius",[33,2673,2674],{},"Returns the set of turtles within the given distance (number of links followed) of the calling turtle in the current context, including the calling turtle.",[33,2676,2677,2679,2680,2683,2684,2686,2687,2690,2691,2693],{},[45,2678,1529],{}," form will follow both undirected links and directed ",[141,2681,2682],{},"out"," links. You can think of ",[45,2685,2651],{}," as “turtles ",[141,2688,2689],{},"who I can get to"," in ",[37,2692,2671],{}," steps”.",[33,2695,2696,2697,2709,2710,2712,2713,2709,2725,2727],{},"If you want the primitive to follow only undirected links or only directed links, you can do it by setting the context appropriately. For example: ",[45,2698,2699,60,2702,60,2705],{},[48,2700,150],{"className":2701},[51,58],[48,2703,174],{"className":2704},[51,173],[48,2706,2708],{"className":2707},[51,58],"undir-links"," (assuming ",[45,2711,2708],{}," is an undirected link breed) or ",[45,2714,2715,60,2718,60,2721],{},[48,2716,150],{"className":2717},[51,58],[48,2719,174],{"className":2720},[51,173],[48,2722,2724],{"className":2723},[51,58],"dir-links",[45,2726,2724],{}," is a directed link breed).",[33,2729,2730],{},"Example:",[42,2732,2733],{},[45,2734,2735,2738,2740,60,2743,2747,2749,60,2752,60,2755,54,2758,60,2762,60,2765,65,2768,2770,60,2773,60,2776,54,2779,60,2782,60,2785,65,2788,2790,60,2793,60,2796,54,2799,60,2802,60,2805,65,2808,2810,60,2813,60,2816,54,2819,60,2822,60,2825,65,2829,2831,60,2834,60,2837,604,2840,607,2842,60,2845,60,2848,60,2851,2854,631],{},[48,2736,329],{"className":2737},[51,328],[70,2739],{},[48,2741,335],{"className":2742},[51,328],[48,2744,2746],{"className":2745},[51,339],"5",[70,2748],{},[48,2750,468],{"className":2751},[51,328],[48,2753,408],{"className":2754},[51,173],[48,2756,412],{"className":2757},[51,339],[48,2759,2761],{"className":2760},[51,328],"create-link-with",[48,2763,408],{"className":2764},[51,173],[48,2766,420],{"className":2767},[51,339],[70,2769],{},[48,2771,468],{"className":2772},[51,328],[48,2774,408],{"className":2775},[51,173],[48,2777,412],{"className":2778},[51,339],[48,2780,2761],{"className":2781},[51,328],[48,2783,408],{"className":2784},[51,173],[48,2786,427],{"className":2787},[51,339],[70,2789],{},[48,2791,468],{"className":2792},[51,328],[48,2794,408],{"className":2795},[51,173],[48,2797,420],{"className":2798},[51,339],[48,2800,2761],{"className":2801},[51,328],[48,2803,408],{"className":2804},[51,173],[48,2806,340],{"className":2807},[51,339],[70,2809],{},[48,2811,468],{"className":2812},[51,328],[48,2814,408],{"className":2815},[51,173],[48,2817,427],{"className":2818},[51,339],[48,2820,2761],{"className":2821},[51,328],[48,2823,408],{"className":2824},[51,173],[48,2826,2828],{"className":2827},[51,339],"4",[70,2830],{},[48,2832,468],{"className":2833},[51,328],[48,2835,408],{"className":2836},[51,173],[48,2838,412],{"className":2839},[51,339],[70,2841],{},[48,2843,385],{"className":2844},[51,328],[48,2846,393],{"className":2847},[51,173],[48,2849,1529],{"className":2850},[51,58],[48,2852,420],{"className":2853},[51,339],[70,2855],{},[33,2857,2858],{},"Will output:",[42,2860,2861],{},[45,2862,2863,2864,60,2867,1145,2870,1867,2873,60,2876,413,2879,60,2882,413,2885,60,2888,1887],{},"(",[48,2865,408],{"className":2866},[51,173],[48,2868,412],{"className":2869},[51,339],[48,2871,2024],{"className":2872},[51,58],[48,2874,408],{"className":2875},[51,173],[48,2877,412],{"className":2878},[51,339],[48,2880,408],{"className":2881},[51,173],[48,2883,420],{"className":2884},[51,339],[48,2886,408],{"className":2887},[51,173],[48,2889,427],{"className":2890},[51,339],[33,2892,2893,2894,2901],{},"As you may have noticed, the result includes the calling turtle. This mimics the behavior of the regular NetLogo ",[16,2895,2898],{"href":2896,"rel":2897},"http://ccl.northwestern.edu/netlogo/docs/dictionary.html#in-radius",[256],[45,2899,2900],{},"in-radius"," primitive.",[1173,2903,1176,2906,1176,2911,2925],{"className":2904,"id":2905},[1632],"turtles-in-reverse-radius",[237,2907,1637,2909,1176],{"id":2908},"nwturtles-in-reverse-radius",[16,2910,1539],{"href":1536},[1641,2912,2915],{"id":2913,"className":2914},"nwturtles-in-reverse-radius-radius",[14],[16,2916,1637,2919,1176],{"className":2917,"href":2918},[19],"#----nwturtles-in-reverse-radius-radius--",[48,2920,2922,2923],{"className":2921},[1652],"nw:turtles-in-reverse-radius ",[1655,2924,2671],{},[33,2926,2927,2928,2939,2940,2686,2942,2690,2945,2693],{},"Like ",[2929,2930,2932],"primitive",{"displayText":1529,"permalink":2931},"/nw/turtles-in-radius",[16,2933,1529],{"href":2931,"rel":2934,"className":2936,"dataDisplayText":1529,"target":2938,"title":1529},[2935],"noopener",[2937],"netlogo-wiki-link","_self",", but follows in-links instead of out-links. Also follow undirected links. You can think of ",[45,2941,2905],{},[141,2943,2944],{},"who can get to me",[37,2946,2671],{},[1173,2948,1176,2951,1176,2956,2971,2974,2976,3128,3130],{"className":2949,"id":2950},[1632],"distance-to",[237,2952,1637,2954,1176],{"id":2953},"nwdistance-to",[16,2955,1549],{"href":1546},[1641,2957,2960],{"id":2958,"className":2959},"nwdistance-to-target-turtle",[14],[16,2961,1637,2964,1176],{"className":2962,"href":2963},[19],"#----nwdistance-to-target-turtle--",[48,2965,2967,2968],{"className":2966},[1652],"nw:distance-to ",[1655,2969,2970],{},"target-turtle",[33,2972,2973],{},"Finds the shortest path to the target turtle and reports the total distance for this path, or false if no path exists in the current context. Each link counts for a distance of one.",[33,2975,2730],{},[42,2977,2978],{},[45,2979,2980,60,2983,2987,607,2989,2992,607,2994,60,2997,3000,607,3002,60,3005,60,3008,54,3011,60,3014,60,3017,65,3020,607,3022,60,3025,60,3028,54,3031,60,3034,60,3037,65,3040,607,3042,60,3045,60,3048,54,3051,60,3054,60,3057,65,3060,607,3062,60,3065,60,3068,54,3071,60,3074,60,3077,65,3080,607,3082,60,3085,60,3088,54,3091,60,3094,60,3097,65,3100,607,3102,60,3105,60,3108,54,3111,60,3114,60,3117,60,3120,65,3123],{},[48,2981,2094],{"className":2982},[51,52],[48,2984,2986],{"className":2985},[51,58],"go",[70,2988],{},[48,2990,329],{"className":2991},[51,328],[70,2993],{},[48,2995,335],{"className":2996},[51,328],[48,2998,2746],{"className":2999},[51,339],[70,3001],{},[48,3003,468],{"className":3004},[51,328],[48,3006,408],{"className":3007},[51,173],[48,3009,412],{"className":3010},[51,339],[48,3012,2761],{"className":3013},[51,328],[48,3015,408],{"className":3016},[51,173],[48,3018,420],{"className":3019},[51,339],[70,3021],{},[48,3023,468],{"className":3024},[51,328],[48,3026,408],{"className":3027},[51,173],[48,3029,420],{"className":3030},[51,339],[48,3032,2761],{"className":3033},[51,328],[48,3035,408],{"className":3036},[51,173],[48,3038,427],{"className":3039},[51,339],[70,3041],{},[48,3043,468],{"className":3044},[51,328],[48,3046,408],{"className":3047},[51,173],[48,3049,412],{"className":3050},[51,339],[48,3052,2761],{"className":3053},[51,328],[48,3055,408],{"className":3056},[51,173],[48,3058,340],{"className":3059},[51,339],[70,3061],{},[48,3063,468],{"className":3064},[51,328],[48,3066,408],{"className":3067},[51,173],[48,3069,340],{"className":3070},[51,339],[48,3072,2761],{"className":3073},[51,328],[48,3075,408],{"className":3076},[51,173],[48,3078,2828],{"className":3079},[51,339],[70,3081],{},[48,3083,468],{"className":3084},[51,328],[48,3086,408],{"className":3087},[51,173],[48,3089,2828],{"className":3090},[51,339],[48,3092,2761],{"className":3093},[51,328],[48,3095,408],{"className":3096},[51,173],[48,3098,427],{"className":3099},[51,339],[70,3101],{},[48,3103,468],{"className":3104},[51,328],[48,3106,408],{"className":3107},[51,173],[48,3109,412],{"className":3110},[51,339],[48,3112,385],{"className":3113},[51,328],[48,3115,1549],{"className":3116},[51,58],[48,3118,408],{"className":3119},[51,173],[48,3121,427],{"className":3122},[51,339],[48,3124,3126,2392],{"className":3125},[51,52],[70,3127],{},[33,3129,2858],{},[42,3131,3132],{},[45,3133,2863,3134,60,3137,1145,3140,60,3143],{},[48,3135,408],{"className":3136},[51,173],[48,3138,412],{"className":3139},[51,339],[48,3141,2024],{"className":3142},[51,58],[48,3144,427],{"className":3145},[51,339],[1173,3147,1176,3150,1176,3155,3172,3182,3184,3396,3398],{"className":3148,"id":3149},[1632],"weighted-distance-to",[237,3151,1637,3153,1176],{"id":3152},"nwweighted-distance-to",[16,3154,1559],{"href":1556},[1641,3156,3159],{"id":3157,"className":3158},"nwweighted-distance-to-target-turtle-weight-variable",[14],[16,3160,1637,3163,1176],{"className":3161,"href":3162},[19],"#----nwweighted-distance-to-target-turtle-weight-variable--",[48,3164,3166,3167,60,3169],{"className":3165},[1652],"nw:weighted-distance-to ",[1655,3168,2970],{},[1655,3170,3171],{},"weight-variable",[33,3173,2927,3174,3181],{},[2929,3175,3177],{"displayText":1549,"permalink":3176},"/nw/distance-to",[16,3178,1549],{"href":3176,"rel":3179,"className":3180,"dataDisplayText":1549,"target":2938,"title":1549},[2935],[2937],", but takes link weight into account. The weights cannot be negative numbers.",[33,3183,2730],{},[42,3185,3186],{},[45,3187,3188,54,3192,65,3196,60,3201,3204,607,3206,3209,607,3211,60,3214,3217,607,3219,60,3222,60,3225,54,3228,60,3231,60,3234,54,3237,60,3240,60,3243,3247,3248,607,3250,60,3253,60,3256,54,3259,60,3262,60,3265,54,3268,60,3271,60,3274,3247,3277,607,3279,60,3282,60,3285,54,3288,60,3291,60,3294,54,3297,60,3300,60,3303,3247,3307,607,3309,60,3312,60,3315,54,3318,60,3321,60,3324,54,3327,60,3330,60,3333,3247,3336,607,3338,60,3341,60,3344,54,3347,60,3350,60,3353,54,3356,60,3359,60,3362,3247,3365,607,3367,60,3370,60,3373,54,3376,60,3379,60,3382,60,3385,60,3388,65,3391],{},[48,3189,3191],{"className":3190},[51,52],"links-own",[48,3193,3195],{"className":3194},[51,58],"weight",[48,3197,3199,2094],{"className":3198},[51,52],[70,3200],{},[48,3202,2986],{"className":3203},[51,58],[70,3205],{},[48,3207,329],{"className":3208},[51,328],[70,3210],{},[48,3212,335],{"className":3213},[51,328],[48,3215,2746],{"className":3216},[51,339],[70,3218],{},[48,3220,468],{"className":3221},[51,328],[48,3223,408],{"className":3224},[51,173],[48,3226,412],{"className":3227},[51,339],[48,3229,2761],{"className":3230},[51,328],[48,3232,408],{"className":3233},[51,173],[48,3235,420],{"className":3236},[51,339],[48,3238,622],{"className":3239},[51,328],[48,3241,3195],{"className":3242},[51,58],[48,3244,3246],{"className":3245},[51,339],"2.0"," ] ]",[70,3249],{},[48,3251,468],{"className":3252},[51,328],[48,3254,408],{"className":3255},[51,173],[48,3257,420],{"className":3258},[51,339],[48,3260,2761],{"className":3261},[51,328],[48,3263,408],{"className":3264},[51,173],[48,3266,427],{"className":3267},[51,339],[48,3269,622],{"className":3270},[51,328],[48,3272,3195],{"className":3273},[51,58],[48,3275,3246],{"className":3276},[51,339],[70,3278],{},[48,3280,468],{"className":3281},[51,328],[48,3283,408],{"className":3284},[51,173],[48,3286,412],{"className":3287},[51,339],[48,3289,2761],{"className":3290},[51,328],[48,3292,408],{"className":3293},[51,173],[48,3295,340],{"className":3296},[51,339],[48,3298,622],{"className":3299},[51,328],[48,3301,3195],{"className":3302},[51,58],[48,3304,3306],{"className":3305},[51,339],"0.5",[70,3308],{},[48,3310,468],{"className":3311},[51,328],[48,3313,408],{"className":3314},[51,173],[48,3316,340],{"className":3317},[51,339],[48,3319,2761],{"className":3320},[51,328],[48,3322,408],{"className":3323},[51,173],[48,3325,2828],{"className":3326},[51,339],[48,3328,622],{"className":3329},[51,328],[48,3331,3195],{"className":3332},[51,58],[48,3334,3306],{"className":3335},[51,339],[70,3337],{},[48,3339,468],{"className":3340},[51,328],[48,3342,408],{"className":3343},[51,173],[48,3345,2828],{"className":3346},[51,339],[48,3348,2761],{"className":3349},[51,328],[48,3351,408],{"className":3352},[51,173],[48,3354,427],{"className":3355},[51,339],[48,3357,622],{"className":3358},[51,328],[48,3360,3195],{"className":3361},[51,58],[48,3363,3306],{"className":3364},[51,339],[70,3366],{},[48,3368,468],{"className":3369},[51,328],[48,3371,408],{"className":3372},[51,173],[48,3374,412],{"className":3375},[51,339],[48,3377,385],{"className":3378},[51,328],[48,3380,1559],{"className":3381},[51,58],[48,3383,408],{"className":3384},[51,173],[48,3386,427],{"className":3387},[51,339],[48,3389,3195],{"className":3390},[51,58],[48,3392,3394,2392],{"className":3393},[51,52],[70,3395],{},[33,3397,2858],{},[42,3399,3400],{},[45,3401,2863,3402,60,3405,1145,3408,60,3411],{},[48,3403,408],{"className":3404},[51,173],[48,3406,412],{"className":3407},[51,339],[48,3409,2024],{"className":3410},[51,58],[48,3412,3414],{"className":3413},[51,339],"1.5",[1173,3416,1176,3419,1176,3424,3438,3441,3448,3451,3610,3612],{"className":3417,"id":3418},[1632],"path-to",[237,3420,1637,3422,1176],{"id":3421},"nwpath-to",[16,3423,1569],{"href":1566},[1641,3425,3428],{"id":3426,"className":3427},"nwpath-to-target-turtle",[14],[16,3429,1637,3432,1176],{"className":3430,"href":3431},[19],"#----nwpath-to-target-turtle--",[48,3433,3435,3436],{"className":3434},[1652],"nw:path-to ",[1655,3437,2970],{},[33,3439,3440],{},"Finds the shortest path to the target turtle and reports the actual path between the source and the target turtle. The path is reported as the list of links that constitute the path.",[33,3442,3443,3444,3447],{},"If no path exist between the source and the target turtles, ",[45,3445,3446],{},"false"," will be reported instead.",[33,3449,3450],{},"Note that the NW-Extension remembers paths that its calculated previously unless the network changes. Thus, you don’t need to store paths to efficiently move across the network; you can just keep re-calling one of the path primitives. If the network changes, however, the stored answers are forgotten.\nExample:",[42,3452,3453],{},[45,3454,3455,54,3458,65,3461,60,3466,3469,607,3471,3474,607,3476,60,3479,3482,607,3484,60,3487,60,3490,54,3493,60,3496,60,3499,65,3502,607,3504,60,3507,60,3510,54,3513,60,3516,60,3519,65,3522,607,3524,60,3527,60,3530,54,3533,60,3536,60,3539,65,3542,607,3544,60,3547,60,3550,54,3553,60,3556,60,3559,65,3562,607,3564,60,3567,60,3570,54,3573,60,3576,60,3579,65,3582,607,3584,60,3587,60,3590,54,3593,60,3596,60,3599,60,3602,65,3605],{},[48,3456,3191],{"className":3457},[51,52],[48,3459,3195],{"className":3460},[51,58],[48,3462,3464,2094],{"className":3463},[51,52],[70,3465],{},[48,3467,2986],{"className":3468},[51,58],[70,3470],{},[48,3472,329],{"className":3473},[51,328],[70,3475],{},[48,3477,335],{"className":3478},[51,328],[48,3480,2746],{"className":3481},[51,339],[70,3483],{},[48,3485,468],{"className":3486},[51,328],[48,3488,408],{"className":3489},[51,173],[48,3491,412],{"className":3492},[51,339],[48,3494,2761],{"className":3495},[51,328],[48,3497,408],{"className":3498},[51,173],[48,3500,420],{"className":3501},[51,339],[70,3503],{},[48,3505,468],{"className":3506},[51,328],[48,3508,408],{"className":3509},[51,173],[48,3511,420],{"className":3512},[51,339],[48,3514,2761],{"className":3515},[51,328],[48,3517,408],{"className":3518},[51,173],[48,3520,427],{"className":3521},[51,339],[70,3523],{},[48,3525,468],{"className":3526},[51,328],[48,3528,408],{"className":3529},[51,173],[48,3531,412],{"className":3532},[51,339],[48,3534,2761],{"className":3535},[51,328],[48,3537,408],{"className":3538},[51,173],[48,3540,340],{"className":3541},[51,339],[70,3543],{},[48,3545,468],{"className":3546},[51,328],[48,3548,408],{"className":3549},[51,173],[48,3551,340],{"className":3552},[51,339],[48,3554,2761],{"className":3555},[51,328],[48,3557,408],{"className":3558},[51,173],[48,3560,2828],{"className":3561},[51,339],[70,3563],{},[48,3565,468],{"className":3566},[51,328],[48,3568,408],{"className":3569},[51,173],[48,3571,2828],{"className":3572},[51,339],[48,3574,2761],{"className":3575},[51,328],[48,3577,408],{"className":3578},[51,173],[48,3580,427],{"className":3581},[51,339],[70,3583],{},[48,3585,468],{"className":3586},[51,328],[48,3588,408],{"className":3589},[51,173],[48,3591,412],{"className":3592},[51,339],[48,3594,385],{"className":3595},[51,328],[48,3597,1569],{"className":3598},[51,58],[48,3600,408],{"className":3601},[51,173],[48,3603,427],{"className":3604},[51,339],[48,3606,3608,2392],{"className":3607},[51,52],[70,3609],{},[33,3611,2858],{},[42,3613,3614],{},[45,3615,2863,3616,60,3619,1145,3622,1867,3625,60,3628,60,3631,413,3634,60,3637,60,3640,1887],{},[48,3617,408],{"className":3618},[51,173],[48,3620,412],{"className":3621},[51,339],[48,3623,2024],{"className":3624},[51,58],[48,3626,432],{"className":3627},[51,173],[48,3629,412],{"className":3630},[51,339],[48,3632,420],{"className":3633},[51,339],[48,3635,432],{"className":3636},[51,173],[48,3638,420],{"className":3639},[51,339],[48,3641,427],{"className":3642},[51,339],[1173,3644,1176,3647,1176,3652,3666,3674,3676,3827,3829],{"className":3645,"id":3646},[1632],"turtles-on-path-to",[237,3648,1637,3650,1176],{"id":3649},"nwturtles-on-path-to",[16,3651,1579],{"href":1576},[1641,3653,3656],{"id":3654,"className":3655},"nwturtles-on-path-to-target-turtle",[14],[16,3657,1637,3660,1176],{"className":3658,"href":3659},[19],"#----nwturtles-on-path-to-target-turtle--",[48,3661,3663,3664],{"className":3662},[1652],"nw:turtles-on-path-to ",[1655,3665,2970],{},[33,3667,2927,3668,3673],{},[16,3669,3671],{"href":3670},"/nw/path-to",[45,3672,1569],{},", but the turtles on the path are reported, instead of the links, including the source turtle and target turtle.",[33,3675,2730],{},[42,3677,3678],{},[45,3679,3680,60,3683,3686,607,3688,3691,607,3693,60,3696,3699,607,3701,60,3704,60,3707,54,3710,60,3713,60,3716,65,3719,607,3721,60,3724,60,3727,54,3730,60,3733,60,3736,65,3739,607,3741,60,3744,60,3747,54,3750,60,3753,60,3756,65,3759,607,3761,60,3764,60,3767,54,3770,60,3773,60,3776,65,3779,607,3781,60,3784,60,3787,54,3790,60,3793,60,3796,65,3799,607,3801,60,3804,60,3807,54,3810,60,3813,60,3816,60,3819,65,3822],{},[48,3681,2094],{"className":3682},[51,52],[48,3684,2986],{"className":3685},[51,58],[70,3687],{},[48,3689,329],{"className":3690},[51,328],[70,3692],{},[48,3694,335],{"className":3695},[51,328],[48,3697,2746],{"className":3698},[51,339],[70,3700],{},[48,3702,468],{"className":3703},[51,328],[48,3705,408],{"className":3706},[51,173],[48,3708,412],{"className":3709},[51,339],[48,3711,2761],{"className":3712},[51,328],[48,3714,408],{"className":3715},[51,173],[48,3717,420],{"className":3718},[51,339],[70,3720],{},[48,3722,468],{"className":3723},[51,328],[48,3725,408],{"className":3726},[51,173],[48,3728,420],{"className":3729},[51,339],[48,3731,2761],{"className":3732},[51,328],[48,3734,408],{"className":3735},[51,173],[48,3737,427],{"className":3738},[51,339],[70,3740],{},[48,3742,468],{"className":3743},[51,328],[48,3745,408],{"className":3746},[51,173],[48,3748,412],{"className":3749},[51,339],[48,3751,2761],{"className":3752},[51,328],[48,3754,408],{"className":3755},[51,173],[48,3757,340],{"className":3758},[51,339],[70,3760],{},[48,3762,468],{"className":3763},[51,328],[48,3765,408],{"className":3766},[51,173],[48,3768,340],{"className":3769},[51,339],[48,3771,2761],{"className":3772},[51,328],[48,3774,408],{"className":3775},[51,173],[48,3777,2828],{"className":3778},[51,339],[70,3780],{},[48,3782,468],{"className":3783},[51,328],[48,3785,408],{"className":3786},[51,173],[48,3788,2828],{"className":3789},[51,339],[48,3791,2761],{"className":3792},[51,328],[48,3794,408],{"className":3795},[51,173],[48,3797,427],{"className":3798},[51,339],[70,3800],{},[48,3802,468],{"className":3803},[51,328],[48,3805,408],{"className":3806},[51,173],[48,3808,412],{"className":3809},[51,339],[48,3811,385],{"className":3812},[51,328],[48,3814,1579],{"className":3815},[51,58],[48,3817,408],{"className":3818},[51,173],[48,3820,427],{"className":3821},[51,339],[48,3823,3825,2392],{"className":3824},[51,52],[70,3826],{},[33,3828,2858],{},[42,3830,3831],{},[45,3832,2863,3833,60,3836,1145,3839,1867,3842,60,3845,413,3848,60,3851,413,3854,60,3857,1887],{},[48,3834,408],{"className":3835},[51,173],[48,3837,412],{"className":3838},[51,339],[48,3840,2024],{"className":3841},[51,58],[48,3843,408],{"className":3844},[51,173],[48,3846,412],{"className":3847},[51,339],[48,3849,408],{"className":3850},[51,173],[48,3852,420],{"className":3853},[51,339],[48,3855,408],{"className":3856},[51,173],[48,3858,427],{"className":3859},[51,339],[1173,3861,1176,3864,1176,3869,3885,3892,3894,4101,4103],{"className":3862,"id":3863},[1632],"weighted-path-to",[237,3865,1637,3867,1176],{"id":3866},"nwweighted-path-to",[16,3868,1589],{"href":1586},[1641,3870,3873],{"id":3871,"className":3872},"nwweighted-path-to-target-turtle-weight-variable",[14],[16,3874,1637,3877,1176],{"className":3875,"href":3876},[19],"#----nwweighted-path-to-target-turtle-weight-variable--",[48,3878,3880,3881,60,3883],{"className":3879},[1652],"nw:weighted-path-to ",[1655,3882,2970],{},[1655,3884,3171],{},[33,3886,2927,3887,3891],{},[16,3888,3889],{"href":3670},[45,3890,1569],{},", but takes link weight into account.",[33,3893,2730],{},[42,3895,3896],{},[45,3897,3898,54,3901,65,3904,60,3909,3912,607,3914,3917,607,3919,60,3922,3925,607,3927,60,3930,60,3933,54,3936,60,3939,60,3942,54,3945,60,3948,60,3951,3247,3954,607,3956,60,3959,60,3962,54,3965,60,3968,60,3971,54,3974,60,3977,60,3980,3247,3983,607,3985,60,3988,60,3991,54,3994,60,3997,60,4000,54,4003,60,4006,60,4009,3247,4012,607,4014,60,4017,60,4020,54,4023,60,4026,60,4029,54,4032,60,4035,60,4038,3247,4041,607,4043,60,4046,60,4049,54,4052,60,4055,60,4058,54,4061,60,4064,60,4067,3247,4070,607,4072,60,4075,60,4078,54,4081,60,4084,60,4087,60,4090,60,4093,65,4096],{},[48,3899,3191],{"className":3900},[51,52],[48,3902,3195],{"className":3903},[51,58],[48,3905,3907,2094],{"className":3906},[51,52],[70,3908],{},[48,3910,2986],{"className":3911},[51,58],[70,3913],{},[48,3915,329],{"className":3916},[51,328],[70,3918],{},[48,3920,335],{"className":3921},[51,328],[48,3923,2746],{"className":3924},[51,339],[70,3926],{},[48,3928,468],{"className":3929},[51,328],[48,3931,408],{"className":3932},[51,173],[48,3934,412],{"className":3935},[51,339],[48,3937,2761],{"className":3938},[51,328],[48,3940,408],{"className":3941},[51,173],[48,3943,420],{"className":3944},[51,339],[48,3946,622],{"className":3947},[51,328],[48,3949,3195],{"className":3950},[51,58],[48,3952,3246],{"className":3953},[51,339],[70,3955],{},[48,3957,468],{"className":3958},[51,328],[48,3960,408],{"className":3961},[51,173],[48,3963,420],{"className":3964},[51,339],[48,3966,2761],{"className":3967},[51,328],[48,3969,408],{"className":3970},[51,173],[48,3972,427],{"className":3973},[51,339],[48,3975,622],{"className":3976},[51,328],[48,3978,3195],{"className":3979},[51,58],[48,3981,3246],{"className":3982},[51,339],[70,3984],{},[48,3986,468],{"className":3987},[51,328],[48,3989,408],{"className":3990},[51,173],[48,3992,412],{"className":3993},[51,339],[48,3995,2761],{"className":3996},[51,328],[48,3998,408],{"className":3999},[51,173],[48,4001,340],{"className":4002},[51,339],[48,4004,622],{"className":4005},[51,328],[48,4007,3195],{"className":4008},[51,58],[48,4010,3306],{"className":4011},[51,339],[70,4013],{},[48,4015,468],{"className":4016},[51,328],[48,4018,408],{"className":4019},[51,173],[48,4021,340],{"className":4022},[51,339],[48,4024,2761],{"className":4025},[51,328],[48,4027,408],{"className":4028},[51,173],[48,4030,2828],{"className":4031},[51,339],[48,4033,622],{"className":4034},[51,328],[48,4036,3195],{"className":4037},[51,58],[48,4039,3306],{"className":4040},[51,339],[70,4042],{},[48,4044,468],{"className":4045},[51,328],[48,4047,408],{"className":4048},[51,173],[48,4050,2828],{"className":4051},[51,339],[48,4053,2761],{"className":4054},[51,328],[48,4056,408],{"className":4057},[51,173],[48,4059,427],{"className":4060},[51,339],[48,4062,622],{"className":4063},[51,328],[48,4065,3195],{"className":4066},[51,58],[48,4068,3306],{"className":4069},[51,339],[70,4071],{},[48,4073,468],{"className":4074},[51,328],[48,4076,408],{"className":4077},[51,173],[48,4079,412],{"className":4080},[51,339],[48,4082,385],{"className":4083},[51,328],[48,4085,1589],{"className":4086},[51,58],[48,4088,408],{"className":4089},[51,173],[48,4091,427],{"className":4092},[51,339],[48,4094,3195],{"className":4095},[51,58],[48,4097,4099,2392],{"className":4098},[51,52],[70,4100],{},[33,4102,2858],{},[42,4104,4105],{},[45,4106,2863,4107,60,4110,1145,4113,1867,4116,60,4119,60,4122,413,4125,60,4128,60,4131,413,4134,60,4137,60,4140,1887],{},[48,4108,408],{"className":4109},[51,173],[48,4111,412],{"className":4112},[51,339],[48,4114,2024],{"className":4115},[51,58],[48,4117,432],{"className":4118},[51,173],[48,4120,412],{"className":4121},[51,339],[48,4123,340],{"className":4124},[51,339],[48,4126,432],{"className":4127},[51,173],[48,4129,340],{"className":4130},[51,339],[48,4132,2828],{"className":4133},[51,339],[48,4135,432],{"className":4136},[51,173],[48,4138,427],{"className":4139},[51,339],[48,4141,2828],{"className":4142},[51,339],[1173,4144,1176,4147,1176,4152,4168,4175,4177,4384,4386],{"className":4145,"id":4146},[1632],"turtles-on-weighted-path-to",[237,4148,1637,4150,1176],{"id":4149},"nwturtles-on-weighted-path-to",[16,4151,1599],{"href":1596},[1641,4153,4156],{"id":4154,"className":4155},"nwturtles-on-weighted-path-to-target-turtle-weight-variable",[14],[16,4157,1637,4160,1176],{"className":4158,"href":4159},[19],"#----nwturtles-on-weighted-path-to-target-turtle-weight-variable--",[48,4161,4163,4164,60,4166],{"className":4162},[1652],"nw:turtles-on-weighted-path-to ",[1655,4165,2970],{},[1655,4167,3171],{},[33,4169,2927,4170,3891],{},[16,4171,4173],{"href":4172},"/nw/turtles-on-path-to",[45,4174,1579],{},[33,4176,2730],{},[42,4178,4179],{},[45,4180,4181,54,4184,65,4187,60,4192,4195,607,4197,4200,607,4202,60,4205,4208,607,4210,60,4213,60,4216,54,4219,60,4222,60,4225,54,4228,60,4231,60,4234,3247,4237,607,4239,60,4242,60,4245,54,4248,60,4251,60,4254,54,4257,60,4260,60,4263,3247,4266,607,4268,60,4271,60,4274,54,4277,60,4280,60,4283,54,4286,60,4289,60,4292,3247,4295,607,4297,60,4300,60,4303,54,4306,60,4309,60,4312,54,4315,60,4318,60,4321,3247,4324,607,4326,60,4329,60,4332,54,4335,60,4338,60,4341,54,4344,60,4347,60,4350,3247,4353,607,4355,60,4358,60,4361,54,4364,60,4367,60,4370,60,4373,60,4376,65,4379],{},[48,4182,3191],{"className":4183},[51,52],[48,4185,3195],{"className":4186},[51,58],[48,4188,4190,2094],{"className":4189},[51,52],[70,4191],{},[48,4193,2986],{"className":4194},[51,58],[70,4196],{},[48,4198,329],{"className":4199},[51,328],[70,4201],{},[48,4203,335],{"className":4204},[51,328],[48,4206,2746],{"className":4207},[51,339],[70,4209],{},[48,4211,468],{"className":4212},[51,328],[48,4214,408],{"className":4215},[51,173],[48,4217,412],{"className":4218},[51,339],[48,4220,2761],{"className":4221},[51,328],[48,4223,408],{"className":4224},[51,173],[48,4226,420],{"className":4227},[51,339],[48,4229,622],{"className":4230},[51,328],[48,4232,3195],{"className":4233},[51,58],[48,4235,3246],{"className":4236},[51,339],[70,4238],{},[48,4240,468],{"className":4241},[51,328],[48,4243,408],{"className":4244},[51,173],[48,4246,420],{"className":4247},[51,339],[48,4249,2761],{"className":4250},[51,328],[48,4252,408],{"className":4253},[51,173],[48,4255,427],{"className":4256},[51,339],[48,4258,622],{"className":4259},[51,328],[48,4261,3195],{"className":4262},[51,58],[48,4264,3246],{"className":4265},[51,339],[70,4267],{},[48,4269,468],{"className":4270},[51,328],[48,4272,408],{"className":4273},[51,173],[48,4275,412],{"className":4276},[51,339],[48,4278,2761],{"className":4279},[51,328],[48,4281,408],{"className":4282},[51,173],[48,4284,340],{"className":4285},[51,339],[48,4287,622],{"className":4288},[51,328],[48,4290,3195],{"className":4291},[51,58],[48,4293,3306],{"className":4294},[51,339],[70,4296],{},[48,4298,468],{"className":4299},[51,328],[48,4301,408],{"className":4302},[51,173],[48,4304,340],{"className":4305},[51,339],[48,4307,2761],{"className":4308},[51,328],[48,4310,408],{"className":4311},[51,173],[48,4313,2828],{"className":4314},[51,339],[48,4316,622],{"className":4317},[51,328],[48,4319,3195],{"className":4320},[51,58],[48,4322,3306],{"className":4323},[51,339],[70,4325],{},[48,4327,468],{"className":4328},[51,328],[48,4330,408],{"className":4331},[51,173],[48,4333,2828],{"className":4334},[51,339],[48,4336,2761],{"className":4337},[51,328],[48,4339,408],{"className":4340},[51,173],[48,4342,427],{"className":4343},[51,339],[48,4345,622],{"className":4346},[51,328],[48,4348,3195],{"className":4349},[51,58],[48,4351,3306],{"className":4352},[51,339],[70,4354],{},[48,4356,468],{"className":4357},[51,328],[48,4359,408],{"className":4360},[51,173],[48,4362,412],{"className":4363},[51,339],[48,4365,385],{"className":4366},[51,328],[48,4368,1589],{"className":4369},[51,58],[48,4371,408],{"className":4372},[51,173],[48,4374,427],{"className":4375},[51,339],[48,4377,3195],{"className":4378},[51,58],[48,4380,4382,2392],{"className":4381},[51,52],[70,4383],{},[33,4385,2858],{},[42,4387,4388],{},[45,4389,2863,4390,60,4393,1145,4396,1867,4399,60,4402,413,4405,60,4408,413,4411,60,4414,413,4417,60,4420,1887],{},[48,4391,408],{"className":4392},[51,173],[48,4394,412],{"className":4395},[51,339],[48,4397,2024],{"className":4398},[51,58],[48,4400,408],{"className":4401},[51,173],[48,4403,412],{"className":4404},[51,339],[48,4406,408],{"className":4407},[51,173],[48,4409,340],{"className":4410},[51,339],[48,4412,408],{"className":4413},[51,173],[48,4415,2828],{"className":4416},[51,339],[48,4418,408],{"className":4419},[51,173],[48,4421,427],{"className":4422},[51,339],[1173,4424,1176,4427,1176,4432,4443,4446,4449,4451,4574,4577],{"className":4425,"id":4426},[1632],"mean-path-length",[237,4428,1637,4430,1176],{"id":4429},"nwmean-path-length",[16,4431,1609],{"href":1606},[1641,4433,4436],{"id":4434,"className":4435},"nwmean-path-length-1",[14],[16,4437,1637,4440,1176],{"className":4438,"href":4439},[19],"#----nwmean-path-length---1",[48,4441,1609],{"className":4442},[1652],[33,4444,4445],{},"Reports the average shortest-path length between all distinct pairs of nodes in the current context.",[33,4447,4448],{},"Reports false unless paths exist between all pairs.",[33,4450,2730],{},[42,4452,4453],{},[45,4454,4455,54,4458,65,4461,60,4466,4469,607,4471,4474,607,4476,60,4479,4482,607,4484,60,4487,60,4490,54,4493,60,4496,60,4499,54,4502,60,4505,60,4508,3247,4511,607,4513,60,4516,60,4519,54,4522,60,4525,60,4528,54,4531,60,4534,60,4537,3247,4540,607,4542,60,4545,4548,607,4550,60,4553,60,4556,4561,607,4563,60,4566,4569],{},[48,4456,3191],{"className":4457},[51,52],[48,4459,3195],{"className":4460},[51,58],[48,4462,4464,2094],{"className":4463},[51,52],[70,4465],{},[48,4467,2986],{"className":4468},[51,58],[70,4470],{},[48,4472,329],{"className":4473},[51,328],[70,4475],{},[48,4477,335],{"className":4478},[51,328],[48,4480,340],{"className":4481},[51,339],[70,4483],{},[48,4485,468],{"className":4486},[51,328],[48,4488,408],{"className":4489},[51,173],[48,4491,412],{"className":4492},[51,339],[48,4494,2761],{"className":4495},[51,328],[48,4497,408],{"className":4498},[51,173],[48,4500,420],{"className":4501},[51,339],[48,4503,622],{"className":4504},[51,328],[48,4506,3195],{"className":4507},[51,58],[48,4509,3246],{"className":4510},[51,339],[70,4512],{},[48,4514,468],{"className":4515},[51,328],[48,4517,408],{"className":4518},[51,173],[48,4520,420],{"className":4521},[51,339],[48,4523,2761],{"className":4524},[51,328],[48,4526,408],{"className":4527},[51,173],[48,4529,427],{"className":4530},[51,339],[48,4532,622],{"className":4533},[51,328],[48,4535,3195],{"className":4536},[51,58],[48,4538,3246],{"className":4539},[51,339],[70,4541],{},[48,4543,385],{"className":4544},[51,328],[48,4546,1609],{"className":4547},[51,58],[70,4549],{},[48,4551,335],{"className":4552},[51,328],[48,4554,420],{"className":4555},[51,339],[48,4557,4560],{"className":4558},[51,4559],"comment","; create a new, disconnected turtle",[70,4562],{},[48,4564,385],{"className":4565},[51,328],[48,4567,1609],{"className":4568},[51,58],[48,4570,4572,2392],{"className":4571},[51,52],[70,4573],{},[33,4575,4576],{},"Will ouput:",[42,4578,4579],{},[45,4580,4581,60,4584,4588,4590,60,4593],{},[48,4582,1750],{"className":4583},[51,58],[48,4585,4587],{"className":4586},[51,339],"1.3333333333333333",[70,4589],{},[48,4591,1750],{"className":4592},[51,58],[48,4594,3446],{"className":4595},[51,303],[1173,4597,1176,4600,1176,4605,4619,4627,4629,4772,4774],{"className":4598,"id":4599},[1632],"mean-weighted-path-length",[237,4601,1637,4603,1176],{"id":4602},"nwmean-weighted-path-length",[16,4604,1619],{"href":1616},[1641,4606,4609],{"id":4607,"className":4608},"nwmean-weighted-path-length-weight-variable",[14],[16,4610,1637,4613,1176],{"className":4611,"href":4612},[19],"#----nwmean-weighted-path-length-weight-variable--",[48,4614,4616,4617],{"className":4615},[1652],"nw:mean-weighted-path-length ",[1655,4618,3171],{},[33,4620,2927,4621,4626],{},[16,4622,4624],{"href":4623},"/nw/mean-path-length",[45,4625,1609],{},", but takes into account link weights.",[33,4628,2730],{},[42,4630,4631],{},[45,4632,4633,54,4636,65,4639,60,4644,4647,607,4649,4652,607,4654,60,4657,4660,607,4662,60,4665,60,4668,54,4671,60,4674,60,4677,54,4680,60,4683,60,4686,3247,4689,607,4691,60,4694,60,4697,54,4700,60,4703,60,4706,54,4709,60,4712,60,4715,3247,4718,607,4720,60,4723,4726,607,4728,60,4731,60,4734,4737,607,4739,60,4742,60,4745,4748,607,4750,60,4753,4756,607,4758,60,4761,60,4764,4767],{},[48,4634,3191],{"className":4635},[51,52],[48,4637,3195],{"className":4638},[51,58],[48,4640,4642,2094],{"className":4641},[51,52],[70,4643],{},[48,4645,2986],{"className":4646},[51,58],[70,4648],{},[48,4650,329],{"className":4651},[51,328],[70,4653],{},[48,4655,335],{"className":4656},[51,328],[48,4658,340],{"className":4659},[51,339],[70,4661],{},[48,4663,468],{"className":4664},[51,328],[48,4666,408],{"className":4667},[51,173],[48,4669,412],{"className":4670},[51,339],[48,4672,2761],{"className":4673},[51,328],[48,4675,408],{"className":4676},[51,173],[48,4678,420],{"className":4679},[51,339],[48,4681,622],{"className":4682},[51,328],[48,4684,3195],{"className":4685},[51,58],[48,4687,3246],{"className":4688},[51,339],[70,4690],{},[48,4692,468],{"className":4693},[51,328],[48,4695,408],{"className":4696},[51,173],[48,4698,420],{"className":4699},[51,339],[48,4701,2761],{"className":4702},[51,328],[48,4704,408],{"className":4705},[51,173],[48,4707,427],{"className":4708},[51,339],[48,4710,622],{"className":4711},[51,328],[48,4713,3195],{"className":4714},[51,58],[48,4716,3246],{"className":4717},[51,339],[70,4719],{},[48,4721,385],{"className":4722},[51,328],[48,4724,1609],{"className":4725},[51,58],[70,4727],{},[48,4729,385],{"className":4730},[51,328],[48,4732,1619],{"className":4733},[51,58],[48,4735,3195],{"className":4736},[51,58],[70,4738],{},[48,4740,335],{"className":4741},[51,328],[48,4743,420],{"className":4744},[51,339],[48,4746,4560],{"className":4747},[51,4559],[70,4749],{},[48,4751,385],{"className":4752},[51,328],[48,4754,1609],{"className":4755},[51,58],[70,4757],{},[48,4759,385],{"className":4760},[51,328],[48,4762,1619],{"className":4763},[51,58],[48,4765,3195],{"className":4766},[51,58],[48,4768,4770,2392],{"className":4769},[51,52],[70,4771],{},[33,4773,4576],{},[42,4775,4776],{},[45,4777,4778,60,4781,4785,4787,60,4790],{},[48,4779,1750],{"className":4780},[51,58],[48,4782,4784],{"className":4783},[51,339],"2.6666666666666665",[70,4786],{},[48,4788,1750],{"className":4789},[51,58],[48,4791,3446],{"className":4792},[51,303],[1173,4794,1176,4797,1176,4802,4813,4822],{"className":4795,"id":4796},[1632],"betweenness-centrality",[237,4798,1637,4800,1176],{"id":4799},"nwbetweenness-centrality",[16,4801,1183],{"href":1180},[1641,4803,4806],{"id":4804,"className":4805},"nwbetweenness-centrality-1",[14],[16,4807,1637,4810,1176],{"className":4808,"href":4809},[19],"#----nwbetweenness-centrality---1",[48,4811,1183],{"className":4812},[1652],[33,4814,4815,4816,4821],{},"To calculate the ",[16,4817,4820],{"href":4818,"rel":4819},"https://en.wikipedia.org/wiki/Betweenness_centrality",[256],"betweenness centrality"," of a turtle, you take every other possible pairs of turtles and, for each pair, you calculate the proportion of shortest paths between members of the pair that passes through the current turtle. The betweenness centrality of a turtle is the sum of these.",[33,4823,4824],{},"As of now, link weights are not taken into account.",[1173,4826,1176,4829,1176,4834,4845,4854,4862,4865],{"className":4827,"id":4828},[1632],"eigenvector-centrality",[237,4830,1637,4832,1176],{"id":4831},"nweigenvector-centrality",[16,4833,1197],{"href":1194},[1641,4835,4838],{"id":4836,"className":4837},"nweigenvector-centrality-1",[14],[16,4839,1637,4842,1176],{"className":4840,"href":4841},[19],"#----nweigenvector-centrality---1",[48,4843,1197],{"className":4844},[1652],[33,4846,4847,4848,4853],{},"The ",[16,4849,4852],{"href":4850,"rel":4851},"https://en.wikipedia.org/wiki/Centrality#Eigenvector_centrality",[256],"Eigenvector centrality"," of a node can be thought of as the amount of influence a node has on a network. In practice, turtles that are connected to a lot of other turtles that are themselves well-connected (and so on) get a higher Eigenvector centrality score.",[33,4855,4856,4857,258],{},"In this implementation, the eigenvector centrality is normalized such that the highest eigenvector centrality a node can have is 1. This implementation is designed to agree with Gephi’s implementation out to at least 3 decimal places. If you discover that it disagrees with Gephi on a particular network, please ",[16,4858,4861],{"href":4859,"rel":4860},"https://github.com/NetLogo/NW-Extension/issues/new",[256],"report it",[33,4863,4864],{},"The primitive respects link direction, even in mixed-directed networks. This is the one place where it should disagree with Gephi; Gephi refuses to treat directed links as directed in mixed-networks.",[33,4866,4824],{},[1173,4868,1176,4871,1176,4876,4887,4895,4898,4901],{"className":4869,"id":4870},[1632],"page-rank",[237,4872,1637,4874,1176],{"id":4873},"nwpage-rank",[16,4875,1207],{"href":1204},[1641,4877,4880],{"id":4878,"className":4879},"nwpage-rank-1",[14],[16,4881,1637,4884,1176],{"className":4882,"href":4883},[19],"#----nwpage-rank---1",[48,4885,1207],{"className":4886},[1652],[33,4888,4847,4889,4894],{},[16,4890,4893],{"href":4891,"rel":4892},"https://en.wikipedia.org/wiki/PageRank",[256],"page rank"," of a node can be thought of as the proportion of time that an agent walking forever at random on the network would spend at this node. The agent has an equal chance of taking any of a nodes edges, and will jump around the network completely randomly 15% of the time. In practice, like with eigenvector centrality, turtles that are connected to a lot of other turtles that are themselves well-connected (and so on) get a higher page rank.",[33,4896,4897],{},"Page rank is one of the several algorithms that search engines use to determine the importance of a website.",[33,4899,4900],{},"The sum of all page rank values should be approximately one. Unlike eigenvector centrality, page rank is defined for all networks, no matter the connectivity. Currently, it treats all links as undirected links.",[33,4902,4824],{},[1173,4904,1176,4907,1176,4912,4923,4931],{"className":4905,"id":4906},[1632],"closeness-centrality",[237,4908,1637,4910,1176],{"id":4909},"nwcloseness-centrality",[16,4911,1217],{"href":1214},[1641,4913,4916],{"id":4914,"className":4915},"nwcloseness-centrality-1",[14],[16,4917,1637,4920,1176],{"className":4918,"href":4919},[19],"#----nwcloseness-centrality---1",[48,4921,1217],{"className":4922},[1652],[33,4924,4847,4925,4930],{},[16,4926,4929],{"href":4927,"rel":4928},"https://en.wikipedia.org/wiki/Centrality#Closeness_centrality",[256],"closeness centrality"," of a turtle is defined as the inverse of the average of it’s distances to all other turtles. (Some people use the sum of distances instead of the average, but the extension uses the average.)",[33,4932,4933,4934,4937,4938,4943],{},"Note that this primitive reports the ",[37,4935,4936],{},"intra-component"," closeness of a turtle, that is, it takes into account only the distances to the turtles that are part of the same ",[16,4939,4942],{"href":4940,"rel":4941},"https://en.wikipedia.org/wiki/Connected_component_%28graph_theory%29",[256],"component"," as the current turtle, since distance to turtles in other components is undefined. The closeness centrality of an isolated turtle is defined to be zero.",[1173,4945,1176,4948,1176,4953,4968],{"className":4946,"id":4947},[1632],"weighted-closeness-centrality",[237,4949,1637,4951,1176],{"id":4950},"nwweighted-closeness-centrality",[16,4952,1227],{"href":1224},[1641,4954,4957],{"id":4955,"className":4956},"nwweighted-closeness-centrality-link-weight-variable",[14],[16,4958,1637,4961,1176],{"className":4959,"href":4960},[19],"#----nwweighted-closeness-centrality-link-weight-variable--",[48,4962,4964,4965],{"className":4963},[1652],"nw:weighted-closeness-centrality ",[1655,4966,4967],{},"link-weight-variable",[33,4969,4970,4971,4976],{},"This is identical to ",[16,4972,4974],{"href":4973},"/nw/closeness-centrality",[45,4975,1217],{},", except that weights provided by the given variable are treated as the distances of links.",[1173,4978,1176,4981,1176,4986,4997,5006,5011,5019,5143,5150,5153],{"className":4979,"id":4980},[1632],"clustering-coefficient",[237,4982,1637,4984,1176],{"id":4983},"nwclustering-coefficient",[16,4985,1305],{"href":1302},[1641,4987,4990],{"id":4988,"className":4989},"nwclustering-coefficient-1",[14],[16,4991,1637,4994,1176],{"className":4992,"href":4993},[19],"#----nwclustering-coefficient---1",[48,4995,1305],{"className":4996},[1652],[33,4998,4999,5000,5005],{},"Reports the ",[16,5001,5004],{"href":5002,"rel":5003},"https://en.wikipedia.org/wiki/Clustering_coefficient#Local_clustering_coefficient",[256],"local clustering coefficient"," of the turtle. The clustering coefficient of a node measures how connected its neighbors are. It is defined as the number of links between the node’s neighbors divided by the total number of possible links between its neighbors.",[33,5007,5008,5010],{},[45,5009,1305],{}," takes the directedness of links into account. A directed link counts as a single link whereas an undirected link counts as two links (one going one-way, one going the other).",[33,5012,4847,5013,5018],{},[16,5014,5017],{"href":5015,"rel":5016},"https://en.wikipedia.org/wiki/Clustering_coefficient#Global_clustering_coefficient",[256],"global clustering coefficient"," measures how much nodes tend to cluster together in the network in general. It is defined based on the types of triplets in the network. A triplet consists of a central node and two of its neighbors. If its neighbors are also connected, it’s a closed triplet. If its neighbors are not connected, it’s an open triplet. The global clustering coefficient is simply the number of closed triplets in a network divided by the total number of triplets. It can be calculated from the local clustering coefficient quite easily with the following code",[42,5020,5021],{},[45,5022,5023,60,5027,5031,607,5033,60,5036,60,5040,54,5044,60,5047,60,5051,60,5055,60,5059,662,5062,60,5065,60,5068,60,5072,5075,5076,60,5080,5083,607,5085,60,5088,60,5092,54,5095,60,5098,60,5101,662,5104,60,5107,60,5110,60,5113,5075,5116,60,5119,5122,607,5124,60,5128,60,5131,60,5135,5138],{},[48,5024,5026],{"className":5025},[51,52],"to-report",[48,5028,5030],{"className":5029},[51,58],"global-clustering-coefficient",[70,5032],{},[48,5034,2280],{"className":5035},[51,328],[48,5037,5039],{"className":5038},[51,58],"closed-triplets",[48,5041,5043],{"className":5042},[51,173],"sum",[48,5045,1305],{"className":5046},[51,58],[48,5048,5050],{"className":5049},[51,173],"*",[48,5052,5054],{"className":5053},[51,173],"count",[48,5056,5058],{"className":5057},[51,173],"my-links",[48,5060,5050],{"className":5061},[51,173],[48,5063,5054],{"className":5064},[51,173],[48,5066,5058],{"className":5067},[51,173],[48,5069,5071],{"className":5070},[51,173],"-",[48,5073,420],{"className":5074},[51,339],") ] ",[48,5077,5079],{"className":5078},[51,173],"of",[48,5081,174],{"className":5082},[51,173],[70,5084],{},[48,5086,2280],{"className":5087},[51,328],[48,5089,5091],{"className":5090},[51,58],"triplets",[48,5093,5043],{"className":5094},[51,173],[48,5096,5054],{"className":5097},[51,173],[48,5099,5058],{"className":5100},[51,173],[48,5102,5050],{"className":5103},[51,173],[48,5105,5054],{"className":5106},[51,173],[48,5108,5058],{"className":5109},[51,173],[48,5111,5071],{"className":5112},[51,173],[48,5114,420],{"className":5115},[51,339],[48,5117,5079],{"className":5118},[51,173],[48,5120,174],{"className":5121},[51,173],[70,5123],{},[48,5125,5127],{"className":5126},[51,328],"report",[48,5129,5039],{"className":5130},[51,58],[48,5132,5134],{"className":5133},[51,173],"/",[48,5136,5091],{"className":5137},[51,58],[48,5139,5141,2392],{"className":5140},[51,52],[70,5142],{},[33,5144,5145,5146,136,5148,258],{},"Note that the above will only work with the default context, and may need to tweaked if you’ve set the turtles or links in the network to something other than ",[45,5147,174],{},[45,5149,178],{},[33,5151,5152],{},"The average local clustering coefficient is another popular method for measuring the amount of clustering in the network as a whole. It may be calculated with",[42,5154,5155],{},[45,5156,5157,54,5161,2245,5164,60,5167],{},[48,5158,5160],{"className":5159},[51,173],"mean",[48,5162,1305],{"className":5163},[51,58],[48,5165,5079],{"className":5166},[51,173],[48,5168,174],{"className":5169},[51,173],[1173,5171,1176,5174,1176,5179,5190,5198,5201,5203],{"className":5172,"id":5173},[1632],"modularity",[237,5175,1637,5177,1176],{"id":5176},"nwmodularity",[16,5178,1315],{"href":1312},[1641,5180,5183],{"id":5181,"className":5182},"nwmodularity-1",[14],[16,5184,1637,5187,1176],{"className":5185,"href":5186},[19],"#----nwmodularity---1",[48,5188,1315],{"className":5189},[1652],[33,5191,5192,5197],{},[16,5193,5196],{"href":5194,"rel":5195},"https://en.wikipedia.org/wiki/Modularity_(networks)",[256],"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.",[33,5199,5200],{},"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.",[33,5202,2730],{},[42,5204,5205],{},[45,5206,5207,662,5210,662,5214,60,5217,54,5220,60,5223,60,5226,5229,5230,60,5233,54,5236,60,5239,60,5242,5245],{},[48,5208,1315],{"className":5209},[51,58],[48,5211,5213],{"className":5212},[51,173],"list",[48,5215,174],{"className":5216},[51,173],[48,5218,282],{"className":5219},[51,173],[48,5221,295],{"className":5222},[51,173],[48,5224,299],{"className":5225},[51,173],[48,5227,773],{"className":5228},[51,303]," ]) (",[48,5231,174],{"className":5232},[51,173],[48,5234,282],{"className":5235},[51,173],[48,5237,295],{"className":5238},[51,173],[48,5240,299],{"className":5241},[51,173],[48,5243,304],{"className":5244},[51,303]," ]))",[1173,5247,1176,5250,1176,5255,5266],{"className":5248,"id":5249},[1632],"bicomponent-clusters",[237,5251,1637,5253,1176],{"id":5252},"nwbicomponent-clusters",[16,5254,1246],{"href":1243},[1641,5256,5259],{"id":5257,"className":5258},"nwbicomponent-clusters-1",[14],[16,5260,1637,5263,1176],{"className":5261,"href":5262},[19],"#----nwbicomponent-clusters---1",[48,5264,1246],{"className":5265},[1652],[33,5267,5268,5269,5274],{},"Reports the list of ",[16,5270,5273],{"href":5271,"rel":5272},"https://en.wikipedia.org/wiki/Biconnected_component",[256],"bicomponent clusters"," in the current network context. A bicomponent (also known as a maximal biconnected subgraph) is a part of a network that cannot be disconnected by removing only one node (i.e. you need to remove at least two to disconnect it). The result is reported as a list of agentsets, in random order. Note that one turtle can be a member of more than one bicomponent at once.",[1173,5276,1176,5279,1176,5284,5295,5307],{"className":5277,"id":5278},[1632],"weak-component-clusters",[237,5280,1637,5282,1176],{"id":5281},"nwweak-component-clusters",[16,5283,1256],{"href":1253},[1641,5285,5288],{"id":5286,"className":5287},"nwweak-component-clusters-1",[14],[16,5289,1637,5292,1176],{"className":5290,"href":5291},[19],"#----nwweak-component-clusters---1",[48,5293,1256],{"className":5294},[1652],[33,5296,5297,5298,5302,5303,5306],{},"Reports the list of “weakly” ",[16,5299,5301],{"href":4940,"rel":5300},[256],"connected components"," in the current network context. A weakly connected component is simply a group of nodes where there is a path from each node to every other node. A “strongly” connected component would be one where there is a ",[37,5304,5305],{},"directed"," path from each node to every other. The extension does not support the identification of strongly connected components at the moment.",[33,5308,5309,5310,5313],{},"The result is reported as a list of agentsets, in random order. Note that one turtle ",[37,5311,5312],{},"cannot"," be a member of more than one weakly connected component at once.",[1173,5315,1176,5318,1176,5323,5334,5351,5354,5414,5417],{"className":5316,"id":5317},[1632],"louvain-communities",[237,5319,1637,5321,1176],{"id":5320},"nwlouvain-communities",[16,5322,1266],{"href":1263},[1641,5324,5327],{"id":5325,"className":5326},"nwlouvain-communities-1",[14],[16,5328,1637,5331,1176],{"className":5329,"href":5330},[19],"#----nwlouvain-communities---1",[48,5332,1266],{"className":5333},[1652],[33,5335,5336,5337,5344,5345,5350],{},"Detects community structure present in the network. It does this by maximizing ",[2929,5338,5340],{"displayText":5173,"permalink":5339},"/nw/modularity",[16,5341,5173],{"href":5339,"rel":5342,"className":5343,"dataDisplayText":5173,"target":2938,"title":5173},[2935],[2937]," using the ",[16,5346,5349],{"href":5347,"rel":5348},"https://en.wikipedia.org/wiki/Louvain_Modularity",[256],"Louvain method",". The communities are reported as a list of turtle-sets.",[33,5352,5353],{},"Often you’ll want to tell turtles about the community that they are in. You can do this like so:",[42,5355,5356],{},[45,5357,5358,54,5362,65,5366,5368,5370,5374,5376,5378,60,5382,5385,5386,5390,5391,5395,607,5397,60,5400,54,5403,60,5406,60,5409,65,5412,631],{},[48,5359,5361],{"className":5360},[51,52],"turtles-own",[48,5363,5365],{"className":5364},[51,58],"community",[70,5367],{},[70,5369],{},[48,5371,5373],{"className":5372},[51,58],"...",[70,5375],{},[70,5377],{},[48,5379,5381],{"className":5380},[51,328],"foreach",[48,5383,1266],{"className":5384},[51,58]," [ [",[48,5387,5389],{"className":5388},[51,58],"comm","] ",[48,5392,5394],{"className":5393},[51,173],"->",[70,5396],{},[48,5398,468],{"className":5399},[51,328],[48,5401,5389],{"className":5402},[51,58],[48,5404,622],{"className":5405},[51,328],[48,5407,5365],{"className":5408},[51,58],[48,5410,5389],{"className":5411},[51,58],[70,5413],{},[33,5415,5416],{},"You can give each community its own color with something like this:",[42,5418,5419],{},[45,5420,5421,60,5424,60,5428,5431,5433,60,5436,60,5440,60,5444,662,5447,60,5451,5454,5455,5459,2863,5461,60,5464,60,5467,5385,5470,60,5473,5390,5477,5480,607,5482,60,5485,54,5488,60,5491,60,5494,65,5497,5499],{},[48,5422,2280],{"className":5423},[51,328],[48,5425,5427],{"className":5426},[51,58],"communities",[48,5429,1266],{"className":5430},[51,58],[70,5432],{},[48,5434,2280],{"className":5435},[51,328],[48,5437,5439],{"className":5438},[51,58],"colors",[48,5441,5443],{"className":5442},[51,173],"sublist",[48,5445,412],{"className":5446},[51,339],[48,5448,5450],{"className":5449},[51,173],"length",[48,5452,5427],{"className":5453},[51,58],") ",[48,5456,5458],{"className":5457},[51,173],"base-colors",[70,5460],{},[48,5462,5381],{"className":5463},[51,328],[48,5465,5427],{"className":5466},[51,58],[48,5468,5439],{"className":5469},[51,58],[48,5471,5365],{"className":5472},[51,58],[48,5474,5476],{"className":5475},[51,58],"col",[48,5478,5394],{"className":5479},[51,173],[70,5481],{},[48,5483,468],{"className":5484},[51,328],[48,5486,5365],{"className":5487},[51,58],[48,5489,622],{"className":5490},[51,328],[48,5492,295],{"className":5493},[51,173],[48,5495,5476],{"className":5496},[51,58],[70,5498],{},"])",[1173,5501,1176,5504,1176,5509,5520,5529,5532],{"className":5502,"id":5503},[1632],"maximal-cliques",[237,5505,1637,5507,1176],{"id":5506},"nwmaximal-cliques",[16,5508,1276],{"href":1273},[1641,5510,5513],{"id":5511,"className":5512},"nwmaximal-cliques-1",[14],[16,5514,1637,5517,1176],{"className":5515,"href":5516},[19],"#----nwmaximal-cliques---1",[48,5518,1276],{"className":5519},[1652],[33,5521,5522,5523,5528],{},"A ",[16,5524,5527],{"href":5525,"rel":5526},"https://en.wikipedia.org/wiki/Clique_%28graph_theory%29",[256],"clique"," is a subset of a network in which every node has a direct link to every other node. A maximal clique is a clique that is not, itself, contained in a bigger clique.",[33,5530,5531],{},"The result is reported as a list of agentsets, in random order. Note that one turtle can be a member of more than one maximal clique at once.",[33,5533,5534,5535,5540],{},"The primitive uses the ",[16,5536,5539],{"href":5537,"rel":5538},"https://en.wikipedia.org/wiki/Bron%E2%80%93Kerbosch_algorithm",[256],"Bron–Kerbosch algorithm"," and only works with undirected links.",[1173,5542,1176,5545,1176,5550,5561,5577],{"className":5543,"id":5544},[1632],"biggest-maximal-cliques",[237,5546,1637,5548,1176],{"id":5547},"nwbiggest-maximal-cliques",[16,5549,1286],{"href":1283},[1641,5551,5554],{"id":5552,"className":5553},"nwbiggest-maximal-cliques-1",[14],[16,5555,1637,5558,1176],{"className":5556,"href":5557},[19],"#----nwbiggest-maximal-cliques---1",[48,5559,1286],{"className":5560},[1652],[33,5562,5563,5564,5568,5569,258],{},"The biggest maximal cliques are, as the name implies, the biggest ",[16,5565,5567],{"href":5525,"rel":5566},[256],"cliques"," in the current context. Often, more than one clique are tied for the title of biggest clique, so the result is reported as a list of agentsets, in random order. If you want only one clique, use ",[45,5570,5571,60,5574],{},[48,5572,472],{"className":5573},[51,173],[48,5575,1286],{"className":5576},[51,58],[33,5578,5534,5579,5540],{},[16,5580,5539],{"href":5537,"rel":5581},[256],[1173,5583,1176,5586,1176,5591,5618,5627,5636,5642],{"className":5584,"id":5585},[1632],"generate-preferential-attachment",[237,5587,1637,5589,1176],{"id":5588},"nwgenerate-preferential-attachment",[16,5590,1371],{"href":1368},[1641,5592,5595],{"id":5593,"className":5594},"nwgenerate-preferential-attachment-turtle-breed-link-breed-num-nodes-min-degree-optional-command-block",[14],[16,5596,1637,5599,1176],{"className":5597,"href":5598},[19],"#----nwgenerate-preferential-attachment-turtle-breed-link-breed-num-nodes-min-degree-optional-command-block--",[48,5600,5602,5603,60,5606,60,5609,60,5612,60,5615],{"className":5601},[1652],"nw:generate-preferential-attachment ",[1655,5604,5605],{},"turtle-breed",[1655,5607,5608],{},"link-breed",[1655,5610,5611],{},"num-nodes",[1655,5613,5614],{},"min-degree",[1655,5616,5617],{},"optional-command-block",[33,5619,5620,5621,5626],{},"Generates a new network using a version of the ",[16,5622,5625],{"href":5623,"rel":5624},"https://en.wikipedia.org/wiki/Barab%C3%A1si%E2%80%93Albert_model",[256],"Barabási–Albert"," algorithm. This network will have the property of being “scale free”: the distribution of degrees (i.e. the number of links for each turtle) should follow a power law.",[33,5628,5629,5630,5632,5633,5635],{},"Generation works as follows turtles are added, one by one, each forming ",[45,5631,5614],{}," links to a previously added turtles, until ",[45,5634,5611],{}," is reached.\nThe more links a turtle already has, the greater the probability that new turtles form links with it when they are added.",[33,5637,5638,5639,5641],{},"If you specify an ",[45,5640,5617],{},", it is executed for each turtle in the newly created network. For example:",[42,5643,5644],{},[45,5645,5646,60,5649,60,5652,60,5655,60,5659,54,5662,60,5665,60,5668,65],{},[48,5647,1371],{"className":5648},[51,58],[48,5650,174],{"className":5651},[51,173],[48,5653,178],{"className":5654},[51,173],[48,5656,5658],{"className":5657},[51,339],"100",[48,5660,420],{"className":5661},[51,339],[48,5663,622],{"className":5664},[51,328],[48,5666,295],{"className":5667},[51,173],[48,5669,304],{"className":5670},[51,303],[1173,5672,1176,5675,1176,5680,5703,5721,5724,5728],{"className":5673,"id":5674},[1632],"generate-random",[237,5676,1637,5678,1176],{"id":5677},"nwgenerate-random",[16,5679,1381],{"href":1378},[1641,5681,5684],{"id":5682,"className":5683},"nwgenerate-random-turtle-breed-link-breed-num-nodes-connection-probability-optional-command-block",[14],[16,5685,1637,5688,1176],{"className":5686,"href":5687},[19],"#----nwgenerate-random-turtle-breed-link-breed-num-nodes-connection-probability-optional-command-block--",[48,5689,5691,5692,60,5694,60,5696,60,5698,60,5701],{"className":5690},[1652],"nw:generate-random ",[1655,5693,5605],{},[1655,5695,5608],{},[1655,5697,5611],{},[1655,5699,5700],{},"connection-probability",[1655,5702,5617],{},[33,5704,5705,5706,5708,5709,5711,5712,5715,5716,258],{},"Generates a new random network of ",[37,5707,5611],{}," turtles in which each one has a  ",[37,5710,5700],{}," (between 0 and 1) of being connected to each other turtles. The algorithm uses the ",[37,5713,5714],{},"G(n, p)"," variant of the ",[16,5717,5720],{"href":5718,"rel":5719},"https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93R%C3%A9nyi_model",[256],"Erdős–Rényi model",[33,5722,5723],{},"The algorithm is O(n²) for directed networks and O(n²/2) for undirected networks, so generating more than a couple thousand nodes will likely take a very long time.",[33,5725,5638,5726,5641],{},[37,5727,5617],{},[42,5729,5730],{},[45,5731,5732,60,5735,60,5738,60,5741,60,5744,54,5747,60,5750,60,5753,65],{},[48,5733,1381],{"className":5734},[51,58],[48,5736,174],{"className":5737},[51,173],[48,5739,178],{"className":5740},[51,173],[48,5742,5658],{"className":5743},[51,339],[48,5745,3306],{"className":5746},[51,339],[48,5748,622],{"className":5749},[51,328],[48,5751,295],{"className":5752},[51,173],[48,5754,304],{"className":5755},[51,303],[1173,5757,1176,5760,1176,5765,5791,5799,5808,5817],{"className":5758,"id":5759},[1632],"generate-watts-strogatz",[237,5761,1637,5763,1176],{"id":5762},"nwgenerate-watts-strogatz",[16,5764,1391],{"href":1388},[1641,5766,5769],{"id":5767,"className":5768},"nwgenerate-watts-strogatz-turtle-breed-link-breed-num-nodes-neighborhood-size-rewire-probability-optional-command-block",[14],[16,5770,1637,5773,1176],{"className":5771,"href":5772},[19],"#----nwgenerate-watts-strogatz-turtle-breed-link-breed-num-nodes-neighborhood-size-rewire-probability-optional-command-block--",[48,5774,5776,5777,60,5779,60,5781,60,5783,60,5786,60,5789],{"className":5775},[1652],"nw:generate-watts-strogatz ",[1655,5778,5605],{},[1655,5780,5608],{},[1655,5782,5611],{},[1655,5784,5785],{},"neighborhood-size",[1655,5787,5788],{},"rewire-probability",[1655,5790,5617],{},[33,5792,5793,5794,258],{},"Generates a new ",[16,5795,5798],{"href":5796,"rel":5797},"https://en.wikipedia.org/wiki/Watts_and_Strogatz_model",[256],"Watts-Strogatz small-world network",[33,5800,5801,5802,5804,5805,258],{},"The algorithm begins by creating a ring of nodes, where each node is connected to ",[45,5803,5785],{}," nodes on either side. Then, each link is rewired with probability ",[45,5806,5807],{},"rewire-prob",[33,5809,5638,5810,5812,5813,5816],{},[37,5811,5617],{},", it is executed for each turtle in the newly created network. Furthermore, the turtles are generated in the order they appear as in ",[45,5814,5815],{},"create-ordered-turtles",". So, in order to lay the ring out as a ring, you can do something like:",[42,5818,5819],{},[45,5820,5821,60,5824,60,5827,60,5830,60,5834,60,5837,54,5841,60,5845,65],{},[48,5822,1391],{"className":5823},[51,58],[48,5825,174],{"className":5826},[51,173],[48,5828,178],{"className":5829},[51,173],[48,5831,5833],{"className":5832},[51,339],"50",[48,5835,427],{"className":5836},[51,339],[48,5838,5840],{"className":5839},[51,339],"0.1",[48,5842,5844],{"className":5843},[51,328],"fd",[48,5846,5848],{"className":5847},[51,339],"10",[1173,5850,1176,5853,1176,5858,5888,5907,5923,5927,5961,5964],{"className":5851,"id":5852},[1632],"generate-small-world",[237,5854,1637,5856,1176],{"id":5855},"nwgenerate-small-world",[16,5857,1401],{"href":1398},[1641,5859,5862],{"id":5860,"className":5861},"nwgenerate-small-world-turtle-breed-link-breed-row-count-column-count-clustering-exponent-is-toroidal-optional-command-block",[14],[16,5863,1637,5866,1176],{"className":5864,"href":5865},[19],"#----nwgenerate-small-world-turtle-breed-link-breed-row-count-column-count-clustering-exponent-is-toroidal-optional-command-block--",[48,5867,5869,5870,60,5872,60,5874,60,5877,60,5880,60,5883,60,5886],{"className":5868},[1652],"nw:generate-small-world ",[1655,5871,5605],{},[1655,5873,5608],{},[1655,5875,5876],{},"row-count",[1655,5878,5879],{},"column-count",[1655,5881,5882],{},"clustering-exponent",[1655,5884,5885],{},"is-toroidal",[1655,5887,5617],{},[33,5889,5793,5890,5344,5895,5900,5901,5906],{},[16,5891,5894],{"href":5892,"rel":5893},"https://en.wikipedia.org/wiki/Small-world_network",[256],"small-world network",[16,5896,5899],{"href":5897,"rel":5898},"https://en.wikipedia.org/wiki/Small_world_routing#The_Kleinberg_Model",[256],"Kleinberg Model",". Note that ",[16,5902,5904],{"href":5903},"/nw/generate-watts-strogatz",[45,5905,1391],{}," generates a more traditional small-world network.",[33,5908,5909,5910,5912,5913,5916,5917,5919,5920,5922],{},"The algorithm proceeds by generating a lattice of the given number of rows and columns (the lattice will wrap around itself if ",[37,5911,5885],{}," is ",[45,5914,5915],{},"true","). The “small world effect” is created by adding additional links between the nodes in the lattice. The higher the ",[37,5918,5882],{},", the more the algorithm will favor already close-by nodes when adding new links. A clustering exponent of ",[45,5921,3246],{}," is typically used.",[33,5924,5638,5925,5641],{},[37,5926,5617],{},[42,5928,5929],{},[45,5930,5931,60,5934,60,5937,60,5940,60,5943,60,5946,60,5949,54,5952,60,5955,60,5958,65],{},[48,5932,1401],{"className":5933},[51,58],[48,5935,174],{"className":5936},[51,173],[48,5938,178],{"className":5939},[51,173],[48,5941,5848],{"className":5942},[51,339],[48,5944,5848],{"className":5945},[51,339],[48,5947,3246],{"className":5948},[51,339],[48,5950,3446],{"className":5951},[51,303],[48,5953,622],{"className":5954},[51,328],[48,5956,295],{"className":5957},[51,173],[48,5959,304],{"className":5960},[51,303],[33,5962,5963],{},"The turtles are generated in the order that they appear in the lattice. So, for instance, to generate a kleinberg lattice accross the entire world, and lay it out accordingly, try the following:",[42,5965,5966],{},[45,5967,5968,60,5971,60,5974,60,5977,60,5981,60,5985,60,5988,5991,2863,5993,662,5996,60,5999,413,6002,60,6005,6009,6010,60,6014,5390,6017,60,6020,60,6023,54,6026,60,6030,6033],{},[48,5969,1401],{"className":5970},[51,58],[48,5972,174],{"className":5973},[51,173],[48,5975,178],{"className":5976},[51,173],[48,5978,5980],{"className":5979},[51,173],"world-width",[48,5982,5984],{"className":5983},[51,173],"world-height",[48,5986,3246],{"className":5987},[51,339],[48,5989,3446],{"className":5990},[51,303],[70,5992],{},[48,5994,5381],{"className":5995},[51,328],[48,5997,393],{"className":5998},[51,173],[48,6000,174],{"className":6001},[51,173],[48,6003,393],{"className":6004},[51,173],[48,6006,6008],{"className":6007},[51,173],"patches",") [ [",[48,6011,6013],{"className":6012},[51,58],"t",[48,6015,33],{"className":6016},[51,58],[48,6018,5394],{"className":6019},[51,173],[48,6021,468],{"className":6022},[51,328],[48,6024,6013],{"className":6025},[51,58],[48,6027,6029],{"className":6028},[51,328],"move-to",[48,6031,33],{"className":6032},[51,58]," ] ])",[1173,6035,1176,6038,1176,6043,6067,6086,6090,6121,6124],{"className":6036,"id":6037},[1632],"generate-lattice-2d",[237,6039,1637,6041,1176],{"id":6040},"nwgenerate-lattice-2d",[16,6042,1411],{"href":1408},[1641,6044,6047],{"id":6045,"className":6046},"nwgenerate-lattice-2d-turtle-breed-link-breed-row-count-column-count-is-toroidal-optional-command-block",[14],[16,6048,1637,6051,1176],{"className":6049,"href":6050},[19],"#----nwgenerate-lattice-2d-turtle-breed-link-breed-row-count-column-count-is-toroidal-optional-command-block--",[48,6052,6054,6055,60,6057,60,6059,60,6061,60,6063,60,6065],{"className":6053},[1652],"nw:generate-lattice-2d ",[1655,6056,5605],{},[1655,6058,5608],{},[1655,6060,5876],{},[1655,6062,5879],{},[1655,6064,5885],{},[1655,6066,5617],{},[33,6068,6069,6070,6075,6076,6078,6079,6081,6082,5912,6084,258],{},"Generates a new 2D ",[16,6071,6074],{"href":6072,"rel":6073},"https://en.wikipedia.org/wiki/Lattice_graph",[256],"lattice network"," (basically, a grid) of ",[37,6077,5876],{}," rows and ",[37,6080,5879],{}," columns. The grid will wrap around itself if ",[37,6083,5885],{},[45,6085,5915],{},[33,6087,5638,6088,5641],{},[37,6089,5617],{},[42,6091,6092],{},[45,6093,6094,60,6097,60,6100,60,6103,60,6106,60,6109,54,6112,60,6115,60,6118,65],{},[48,6095,1411],{"className":6096},[51,58],[48,6098,174],{"className":6099},[51,173],[48,6101,178],{"className":6102},[51,173],[48,6104,5848],{"className":6105},[51,339],[48,6107,5848],{"className":6108},[51,339],[48,6110,3446],{"className":6111},[51,303],[48,6113,622],{"className":6114},[51,328],[48,6116,295],{"className":6117},[51,173],[48,6119,304],{"className":6120},[51,303],[33,6122,6123],{},"The turtles are generated in the order that they appear in the lattice. So, for instance, to generate a lattice accross the entire world, and lay it out accordingly, try the following:",[42,6125,6126],{},[45,6127,6128,60,6131,60,6134,60,6137,60,6140,60,6143,6146,2863,6148,662,6151,60,6154,413,6157,60,6160,6009,6163,60,6166,5390,6169,60,6172,60,6175,54,6178,60,6181,6033],{},[48,6129,1411],{"className":6130},[51,58],[48,6132,174],{"className":6133},[51,173],[48,6135,178],{"className":6136},[51,173],[48,6138,5980],{"className":6139},[51,173],[48,6141,5984],{"className":6142},[51,173],[48,6144,3446],{"className":6145},[51,303],[70,6147],{},[48,6149,5381],{"className":6150},[51,328],[48,6152,393],{"className":6153},[51,173],[48,6155,174],{"className":6156},[51,173],[48,6158,393],{"className":6159},[51,173],[48,6161,6008],{"className":6162},[51,173],[48,6164,6013],{"className":6165},[51,58],[48,6167,33],{"className":6168},[51,58],[48,6170,5394],{"className":6171},[51,173],[48,6173,468],{"className":6174},[51,328],[48,6176,6013],{"className":6177},[51,58],[48,6179,6029],{"className":6180},[51,328],[48,6182,33],{"className":6183},[51,58],[1173,6185,1176,6188,1176,6193,6213,6225,6228,6232],{"className":6186,"id":6187},[1632],"generate-ring",[237,6189,1637,6191,1176],{"id":6190},"nwgenerate-ring",[16,6192,1421],{"href":1418},[1641,6194,6197],{"id":6195,"className":6196},"nwgenerate-ring-turtle-breed-link-breed-num-nodes-optional-command-block",[14],[16,6198,1637,6201,1176],{"className":6199,"href":6200},[19],"#----nwgenerate-ring-turtle-breed-link-breed-num-nodes-optional-command-block--",[48,6202,6204,6205,60,6207,60,6209,60,6211],{"className":6203},[1652],"nw:generate-ring ",[1655,6206,5605],{},[1655,6208,5608],{},[1655,6210,5611],{},[1655,6212,5617],{},[33,6214,6215,6216,6221,6222,6224],{},"Generates a ",[16,6217,6220],{"href":6218,"rel":6219},"https://en.wikipedia.org/wiki/Ring_network",[256],"ring network"," of ",[37,6223,5611],{}," turtles, in which each turtle is connected to exactly two other turtles.",[33,6226,6227],{},"The number of nodes must be at least three.",[33,6229,5638,6230,5641],{},[37,6231,5617],{},[42,6233,6234],{},[45,6235,6236,60,6239,60,6242,60,6245,54,6248,60,6251,60,6254,65],{},[48,6237,1421],{"className":6238},[51,58],[48,6240,174],{"className":6241},[51,173],[48,6243,178],{"className":6244},[51,173],[48,6246,5658],{"className":6247},[51,339],[48,6249,622],{"className":6250},[51,328],[48,6252,295],{"className":6253},[51,173],[48,6255,304],{"className":6256},[51,303],[1173,6258,1176,6261,1176,6266,6286,6294,6298],{"className":6259,"id":6260},[1632],"generate-star",[237,6262,1637,6264,1176],{"id":6263},"nwgenerate-star",[16,6265,1431],{"href":1428},[1641,6267,6270],{"id":6268,"className":6269},"nwgenerate-star-turtle-breed-link-breed-num-nodes-optional-command-block",[14],[16,6271,1637,6274,1176],{"className":6272,"href":6273},[19],"#----nwgenerate-star-turtle-breed-link-breed-num-nodes-optional-command-block--",[48,6275,6277,6278,60,6280,60,6282,60,6284],{"className":6276},[1652],"nw:generate-star ",[1655,6279,5605],{},[1655,6281,5608],{},[1655,6283,5611],{},[1655,6285,5617],{},[33,6287,6215,6288,6293],{},[16,6289,6292],{"href":6290,"rel":6291},"https://en.wikipedia.org/wiki/Star_graph",[256],"star network"," in which there is one central turtle and every other turtle is connected only to this central node. The number of turtles can be as low as one, but it won’t look much like a star.",[33,6295,5638,6296,5641],{},[37,6297,5617],{},[42,6299,6300],{},[45,6301,6302,60,6305,60,6308,60,6311,54,6314,60,6317,60,6320,65],{},[48,6303,1431],{"className":6304},[51,58],[48,6306,174],{"className":6307},[51,173],[48,6309,178],{"className":6310},[51,173],[48,6312,5658],{"className":6313},[51,339],[48,6315,622],{"className":6316},[51,328],[48,6318,295],{"className":6319},[51,173],[48,6321,304],{"className":6322},[51,303],[1173,6324,1176,6327,1176,6332,6352,6355,6367,6379,6382,6402,6406],{"className":6325,"id":6326},[1632],"generate-wheel",[237,6328,1637,6330,1176],{"id":6329},"nwgenerate-wheel",[16,6331,1441],{"href":1438},[1641,6333,6336],{"id":6334,"className":6335},"nwgenerate-wheel-turtle-breed-link-breed-num-nodes-optional-command-block",[14],[16,6337,1637,6340,1176],{"className":6338,"href":6339},[19],"#----nwgenerate-wheel-turtle-breed-link-breed-num-nodes-optional-command-block--",[48,6341,6343,6344,60,6346,60,6348,60,6350],{"className":6342},[1652],"nw:generate-wheel ",[1655,6345,5605],{},[1655,6347,5608],{},[1655,6349,5611],{},[1655,6351,5617],{},[33,6353,6354],{},"Variants:",[160,6356,6357,6362],{},[163,6358,6359],{},[45,6360,6361],{},"nw:generate-wheel-inward",[163,6363,6364],{},[45,6365,6366],{},"nw:generate-wheel-outward",[33,6368,6215,6369,6374,6375,6378],{},[16,6370,6373],{"href":6371,"rel":6372},"https://en.wikipedia.org/wiki/Wheel_graph",[256],"wheel network",", which is basically a ",[16,6376,6220],{"href":6218,"rel":6377},[256]," with an additional “central” turtle that is connected to every other turtle.",[33,6380,6381],{},"The number of nodes must be at least four.",[33,6383,4847,6384,6386,6387,136,6389,6391,6392,6394,6395,136,6398,6401],{},[45,6385,1441],{}," only works with undirected link breeds. The ",[45,6388,6361],{},[45,6390,6366],{}," versions only work with directed ",[37,6393,5608],{},". The ",[45,6396,6397],{},"inward",[45,6399,6400],{},"outward"," part of the primitive names refer to the direction that the “spokes” of the wheel point to relative to the central turtle.",[33,6403,5638,6404,5641],{},[37,6405,5617],{},[42,6407,6408],{},[45,6409,6410,60,6413,60,6416,60,6419,54,6422,60,6425,60,6428,65],{},[48,6411,1441],{"className":6412},[51,58],[48,6414,174],{"className":6415},[51,173],[48,6417,178],{"className":6418},[51,173],[48,6420,5658],{"className":6421},[51,339],[48,6423,622],{"className":6424},[51,328],[48,6426,295],{"className":6427},[51,173],[48,6429,304],{"className":6430},[51,303],[1173,6432,1176,6435,1176,6440,6455,6464,6467,6527,6530,6588],{"className":6433,"id":6434},[1632],"save-matrix",[237,6436,1637,6438,1176],{"id":6437},"nwsave-matrix",[16,6439,1460],{"href":1457},[1641,6441,6444],{"id":6442,"className":6443},"nwsave-matrix-file-name",[14],[16,6445,1637,6448,1176],{"className":6446,"href":6447},[19],"#----nwsave-matrix-file-name--",[48,6449,6451,6452],{"className":6450},[1652],"nw:save-matrix ",[1655,6453,6454],{},"file-name",[33,6456,6457,6458,6460,6461,6463],{},"Saves the current network, as defined by ",[45,6459,150],{},", to ",[37,6462,6454],{},", as a text file, in the form of a simple connection matrix.",[33,6465,6466],{},"Here is, for example, a undirected ring network with four nodes:",[42,6468,6469],{},[45,6470,6471,60,6475,60,6479,60,6482,6485,6487,60,6490,60,6493,60,6496,6499,6501,60,6504,60,6507,60,6510,6513,6515,60,6518,60,6521,60,6524],{},[48,6472,6474],{"className":6473},[51,339],"0.00",[48,6476,6478],{"className":6477},[51,339],"1.00",[48,6480,6474],{"className":6481},[51,339],[48,6483,6478],{"className":6484},[51,339],[70,6486],{},[48,6488,6478],{"className":6489},[51,339],[48,6491,6474],{"className":6492},[51,339],[48,6494,6478],{"className":6495},[51,339],[48,6497,6474],{"className":6498},[51,339],[70,6500],{},[48,6502,6474],{"className":6503},[51,339],[48,6505,6478],{"className":6506},[51,339],[48,6508,6474],{"className":6509},[51,339],[48,6511,6478],{"className":6512},[51,339],[70,6514],{},[48,6516,6478],{"className":6517},[51,339],[48,6519,6474],{"className":6520},[51,339],[48,6522,6478],{"className":6523},[51,339],[48,6525,6474],{"className":6526},[51,339],[33,6528,6529],{},"And here is the directed version:",[42,6531,6532],{},[45,6533,6534,60,6537,60,6540,60,6543,6546,6548,60,6551,60,6554,60,6557,6560,6562,60,6565,60,6568,60,6571,6574,6576,60,6579,60,6582,60,6585],{},[48,6535,6474],{"className":6536},[51,339],[48,6538,6478],{"className":6539},[51,339],[48,6541,6474],{"className":6542},[51,339],[48,6544,6474],{"className":6545},[51,339],[70,6547],{},[48,6549,6474],{"className":6550},[51,339],[48,6552,6474],{"className":6553},[51,339],[48,6555,6478],{"className":6556},[51,339],[48,6558,6474],{"className":6559},[51,339],[70,6561],{},[48,6563,6474],{"className":6564},[51,339],[48,6566,6474],{"className":6567},[51,339],[48,6569,6474],{"className":6570},[51,339],[48,6572,6478],{"className":6573},[51,339],[70,6575],{},[48,6577,6478],{"className":6578},[51,339],[48,6580,6474],{"className":6581},[51,339],[48,6583,6474],{"className":6584},[51,339],[48,6586,6474],{"className":6587},[51,339],[33,6589,6590,6591,6593],{},"At the moment, ",[45,6592,1460],{}," does not support link weights. Every link is represented as a “1.00” in the connection matrix. This will change in a future version of the extension.",[1173,6595,1176,6598,1176,6603,6623,6634,6639,6642,6644,6755,6766,6770],{"className":6596,"id":6597},[1632],"load-matrix",[237,6599,1637,6601,1176],{"id":6600},"nwload-matrix",[16,6602,1470],{"href":1467},[1641,6604,6607],{"id":6605,"className":6606},"nwload-matrix-file-name-turtle-breed-link-breed-optional-command-block",[14],[16,6608,1637,6611,1176],{"className":6609,"href":6610},[19],"#----nwload-matrix-file-name-turtle-breed-link-breed-optional-command-block--",[48,6612,6614,6615,60,6617,60,6619,60,6621],{"className":6613},[1652],"nw:load-matrix ",[1655,6616,6454],{},[1655,6618,5605],{},[1655,6620,5608],{},[1655,6622,5617],{},[33,6624,6625,6626,6628,6629,136,6631,6633],{},"Generates a new network according to the connection matrix saved in ",[37,6627,6454],{},", using ",[37,6630,5605],{},[37,6632,5608],{}," to create the new turtles and links.",[33,6635,6590,6636,6638],{},[45,6637,1470],{}," does not support link weights.",[33,6640,6641],{},"Please be aware that the breeds used to load the matrix may be different from those that you used when you saved it.",[33,6643,2528],{},[42,6645,6646],{},[45,6647,6648,54,6651,65,6654,54,6659,60,6663,65,6667,60,6672,6675,607,6677,6680,607,6682,60,6685,54,6688,60,6692,60,6695,65,6698,607,6700,60,6703,60,6706,6709,607,6711,60,6714,6719,607,6721,6724,607,6726,60,6729,60,6732,60,6735,6738,607,6740,60,6744,60,6747,6750],{},[48,6649,2084],{"className":6650},[51,52],[48,6652,2088],{"className":6653},[51,58],[48,6655,6657,101],{"className":6656},[51,52],[70,6658],{},[48,6660,6662],{"className":6661},[51,58],"dirlinks",[48,6664,6666],{"className":6665},[51,58],"dirlink",[48,6668,6670,2094],{"className":6669},[51,52],[70,6671],{},[48,6673,2986],{"className":6674},[51,58],[70,6676],{},[48,6678,329],{"className":6679},[51,328],[70,6681],{},[48,6683,1775],{"className":6684},[51,328],[48,6686,2746],{"className":6687},[51,339],[48,6689,6691],{"className":6690},[51,58],"create-dirlinks-to",[48,6693,348],{"className":6694},[51,173],[48,6696,174],{"className":6697},[51,173],[70,6699],{},[48,6701,150],{"className":6702},[51,58],[48,6704,174],{"className":6705},[51,173],[48,6707,6662],{"className":6708},[51,58],[70,6710],{},[48,6712,1460],{"className":6713},[51,58],[48,6715,6718],{"className":6716},[51,6717],"string","\"matrix.txt\"",[70,6720],{},[48,6722,329],{"className":6723},[51,328],[70,6725],{},[48,6727,1470],{"className":6728},[51,58],[48,6730,6718],{"className":6731},[51,6717],[48,6733,174],{"className":6734},[51,173],[48,6736,178],{"className":6737},[51,173],[70,6739],{},[48,6741,6743],{"className":6742},[51,328],"layout-circle",[48,6745,174],{"className":6746},[51,173],[48,6748,5848],{"className":6749},[51,339],[48,6751,6753,2392],{"className":6752},[51,52],[70,6754],{},[33,6756,6757,6758,6761,6762,6765],{},"…",[37,6759,6760],{},"will"," give you back ",[141,6763,6764],{},"undirected"," links, even if you saved directed links into the matrix.",[33,6767,5638,6768,5641],{},[37,6769,5617],{},[42,6771,6772],{},[45,6773,6774,60,6777,60,6780,60,6783,54,6786,60,6789,60,6792,65],{},[48,6775,1470],{"className":6776},[51,58],[48,6778,6718],{"className":6779},[51,6717],[48,6781,174],{"className":6782},[51,173],[48,6784,178],{"className":6785},[51,173],[48,6787,622],{"className":6788},[51,328],[48,6790,295],{"className":6791},[51,173],[48,6793,304],{"className":6794},[51,303],[1173,6796,1176,6799,1176,6804,6818,6821,7035,7038,7047,7050],{"className":6797,"id":6798},[1632],"save-graphml",[237,6800,1637,6802,1176],{"id":6801},"nwsave-graphml",[16,6803,1480],{"href":1477},[1641,6805,6808],{"id":6806,"className":6807},"nwsave-graphml-file-name",[14],[16,6809,1637,6812,1176],{"className":6810,"href":6811},[19],"#----nwsave-graphml-file-name--",[48,6813,6815,6816],{"className":6814},[1652],"nw:save-graphml ",[1655,6817,6454],{},[33,6819,6820],{},"You can save the current graph to GraphML. The following NetLogo code:",[42,6822,6823],{},[45,6824,6825,54,6828,65,6831,6833,54,6838,60,6841,65,6844,54,6850,65,6854,54,6859,60,6862,65,6865,54,6871,65,6875,6877,54,6882,60,6885,65,6888,6890,54,6895,60,6898,65,6901,54,6907,65,6911,6913,60,6918,6921,607,6923,6926,607,6928,60,6932,604,6935,2114,6937,60,6940,60,6943,6947,2166,6949,607,6951,60,6955,604,6958,2114,6960,60,6963,60,6966,6970,2114,6972,60,6976,60,6979,6982,2114,6984,60,6988,60,6991,604,6994,2150,6996,60,6999,60,7002,7006,2163,7008,2166,7010,607,7012,60,7015,60,7018,7021,607,7023,60,7026,7030],{},[48,6826,2084],{"className":6827},[51,52],[48,6829,2088],{"className":6830},[51,58],[70,6832],{},[48,6834,6836,53],{"className":6835},[51,52],[70,6837],{},[48,6839,59],{"className":6840},[51,58],[48,6842,64],{"className":6843},[51,58],[48,6845,6847,6849],{"className":6846},[51,52],[70,6848],{},"bankers-own",[48,6851,6853],{"className":6852},[51,58],"bank-name",[48,6855,6857,53],{"className":6856},[51,52],[70,6858],{},[48,6860,75],{"className":6861},[51,58],[48,6863,79],{"className":6864},[51,58],[48,6866,6868,6870],{"className":6867},[51,52],[70,6869],{},"clients-own",[48,6872,6874],{"className":6873},[51,58],"hometown",[70,6876],{},[48,6878,6880,87],{"className":6879},[51,52],[70,6881],{},[48,6883,91],{"className":6884},[51,58],[48,6886,95],{"className":6887},[51,58],[70,6889],{},[48,6891,6893,101],{"className":6892},[51,52],[70,6894],{},[48,6896,105],{"className":6897},[51,58],[48,6899,109],{"className":6900},[51,58],[48,6902,6904,6906],{"className":6903},[51,52],[70,6905],{},"accounts-own",[48,6908,6910],{"className":6909},[51,58],"amount",[70,6912],{},[48,6914,6916,2094],{"className":6915},[51,52],[70,6917],{},[48,6919,2986],{"className":6920},[51,58],[70,6922],{},[48,6924,329],{"className":6925},[51,328],[70,6927],{},[48,6929,6931],{"className":6930},[51,58],"create-bankers",[48,6933,420],{"className":6934},[51,339],[70,6936],{},[48,6938,622],{"className":6939},[51,328],[48,6941,6853],{"className":6942},[51,58],[48,6944,6946],{"className":6945},[51,6717],"\"The Bank\"",[70,6948],{},[70,6950],{},[48,6952,6954],{"className":6953},[51,58],"create-clients",[48,6956,420],{"className":6957},[51,339],[70,6959],{},[48,6961,622],{"className":6962},[51,328],[48,6964,6874],{"className":6965},[51,58],[48,6967,6969],{"className":6968},[51,6717],"\"Turtle City\"",[70,6971],{},[48,6973,6975],{"className":6974},[51,58],"create-friendship-with",[48,6977,64],{"className":6978},[51,58],[48,6980,412],{"className":6981},[51,339],[70,6983],{},[48,6985,6987],{"className":6986},[51,58],"create-account-to",[48,6989,64],{"className":6990},[51,58],[48,6992,412],{"className":6993},[51,339],[70,6995],{},[48,6997,622],{"className":6998},[51,328],[48,7000,6910],{"className":7001},[51,58],[48,7003,7005],{"className":7004},[51,339],"9999.99",[70,7007],{},[70,7009],{},[70,7011],{},[48,7013,150],{"className":7014},[51,58],[48,7016,174],{"className":7017},[51,173],[48,7019,178],{"className":7020},[51,173],[70,7022],{},[48,7024,1480],{"className":7025},[51,58],[48,7027,7029],{"className":7028},[51,6717],"\"example.graphml\"",[48,7031,7033,2392],{"className":7032},[51,52],[70,7034],{},[33,7036,7037],{},"Will produce the following GraphML file:",[42,7039,7045],{"className":7040,"code":7042,"language":7043,"meta":7044},[7041],"language-XML","\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003Cgraphml xmlns=\"http://graphml.graphdrawing.org/xmlns/graphml\"\nxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\nxsi:schemaLocation=\"http://graphml.graphdrawing.org/xmlns/graphml\">\n\u003Ckey id=\"PEN-MODE\" for=\"node\" attr.name=\"PEN-MODE\" attr.type=\"string\"/>\n\u003Ckey id=\"YCOR\" for=\"node\" attr.name=\"YCOR\" attr.type=\"double\"/>\n\u003Ckey id=\"PEN-SIZE\" for=\"node\" attr.name=\"PEN-SIZE\" attr.type=\"double\"/>\n\u003Ckey id=\"LABEL\" for=\"node\" attr.name=\"LABEL\" attr.type=\"string\"/>\n\u003Ckey id=\"SHAPE\" for=\"node\" attr.name=\"SHAPE\" attr.type=\"string\"/>\n\u003Ckey id=\"BREED\" for=\"node\" attr.name=\"BREED\" attr.type=\"string\"/>\n\u003Ckey id=\"WHO\" for=\"node\" attr.name=\"WHO\" attr.type=\"double\"/>\n\u003Ckey id=\"HIDDEN?\" for=\"node\" attr.name=\"HIDDEN?\" attr.type=\"boolean\"/>\n\u003Ckey id=\"LABEL-COLOR\" for=\"node\" attr.name=\"LABEL-COLOR\" attr.type=\"double\"/>\n\u003Ckey id=\"HEADING\" for=\"node\" attr.name=\"HEADING\" attr.type=\"double\"/>\n\u003Ckey id=\"BANK-NAME\" for=\"node\" attr.name=\"BANK-NAME\" attr.type=\"string\"/>\n\u003Ckey id=\"HOMETOWN\" for=\"node\" attr.name=\"HOMETOWN\" attr.type=\"string\"/>\n\u003Ckey id=\"COLOR\" for=\"node\" attr.name=\"COLOR\" attr.type=\"double\"/>\n\u003Ckey id=\"XCOR\" for=\"node\" attr.name=\"XCOR\" attr.type=\"double\"/>\n\u003Ckey id=\"SIZE\" for=\"node\" attr.name=\"SIZE\" attr.type=\"double\"/>\n\u003Ckey id=\"END1\" for=\"edge\" attr.name=\"END1\" attr.type=\"string\"/>\n\u003Ckey id=\"TIE-MODE\" for=\"edge\" attr.name=\"TIE-MODE\" attr.type=\"string\"/>\n\u003Ckey id=\"END2\" for=\"edge\" attr.name=\"END2\" attr.type=\"string\"/>\n\u003Ckey id=\"LABEL-COLOR\" for=\"edge\" attr.name=\"LABEL-COLOR\" attr.type=\"double\"/>\n\u003Ckey id=\"THICKNESS\" for=\"edge\" attr.name=\"THICKNESS\" attr.type=\"double\"/>\n\u003Ckey id=\"LABEL\" for=\"edge\" attr.name=\"LABEL\" attr.type=\"string\"/>\n\u003Ckey id=\"SHAPE\" for=\"edge\" attr.name=\"SHAPE\" attr.type=\"string\"/>\n\u003Ckey id=\"BREED\" for=\"edge\" attr.name=\"BREED\" attr.type=\"string\"/>\n\u003Ckey id=\"COLOR\" for=\"edge\" attr.name=\"COLOR\" attr.type=\"double\"/>\n\u003Ckey id=\"AMOUNT\" for=\"edge\" attr.name=\"AMOUNT\" attr.type=\"double\"/>\n\u003Ckey id=\"HIDDEN?\" for=\"edge\" attr.name=\"HIDDEN?\" attr.type=\"boolean\"/>\n\u003Cgraph edgedefault=\"undirected\">\n\u003Cnode id=\"client 1\">\n\u003Cdata key=\"PEN-MODE\">up\u003C/data>\n\u003Cdata key=\"YCOR\">0\u003C/data>\n\u003Cdata key=\"PEN-SIZE\">1\u003C/data>\n\u003Cdata key=\"LABEL\">\u003C/data>\n\u003Cdata key=\"SHAPE\">default\u003C/data>\n\u003Cdata key=\"BREED\">clients\u003C/data>\n\u003Cdata key=\"WHO\">1\u003C/data>\n\u003Cdata key=\"HIDDEN?\">false\u003C/data>\n\u003Cdata key=\"LABEL-COLOR\">9.9\u003C/data>\n\u003Cdata key=\"HEADING\">356\u003C/data>\n\u003Cdata key=\"HOMETOWN\">Turtle City\u003C/data>\n\u003Cdata key=\"COLOR\">115\u003C/data>\n\u003Cdata key=\"XCOR\">0\u003C/data>\n\u003Cdata key=\"SIZE\">1\u003C/data>\n\u003C/node>\n\u003Cnode id=\"banker 0\">\n\u003Cdata key=\"PEN-MODE\">up\u003C/data>\n\u003Cdata key=\"YCOR\">0\u003C/data>\n\u003Cdata key=\"PEN-SIZE\">1\u003C/data>\n\u003Cdata key=\"LABEL\">\u003C/data>\n\u003Cdata key=\"SHAPE\">default\u003C/data>\n\u003Cdata key=\"BREED\">bankers\u003C/data>\n\u003Cdata key=\"WHO\">0\u003C/data>\n\u003Cdata key=\"HIDDEN?\">false\u003C/data>\n\u003Cdata key=\"LABEL-COLOR\">9.9\u003C/data>\n\u003Cdata key=\"HEADING\">32\u003C/data>\n\u003Cdata key=\"BANK-NAME\">The Bank\u003C/data>\n\u003Cdata key=\"COLOR\">85\u003C/data>\n\u003Cdata key=\"XCOR\">0\u003C/data>\n\u003Cdata key=\"SIZE\">1\u003C/data>\n\u003C/node>\n\u003Cedge source=\"client 1\" target=\"banker 0\">\n\u003Cdata key=\"END1\">(client 1)\u003C/data>\n\u003Cdata key=\"TIE-MODE\">none\u003C/data>\n\u003Cdata key=\"END2\">(banker 0)\u003C/data>\n\u003Cdata key=\"LABEL-COLOR\">9.9\u003C/data>\n\u003Cdata key=\"THICKNESS\">0\u003C/data>\n\u003Cdata key=\"LABEL\">\u003C/data>\n\u003Cdata key=\"SHAPE\">default\u003C/data>\n\u003Cdata key=\"BREED\">accounts\u003C/data>\n\u003Cdata key=\"COLOR\">5\u003C/data>\n\u003Cdata key=\"AMOUNT\">9999.99\u003C/data>\n\u003Cdata key=\"HIDDEN?\">false\u003C/data>\n\u003C/edge>\n\u003Cedge source=\"banker 0\" target=\"client 1\">\n\u003Cdata key=\"END1\">(banker 0)\u003C/data>\n\u003Cdata key=\"TIE-MODE\">none\u003C/data>\n\u003Cdata key=\"END2\">(client 1)\u003C/data>\n\u003Cdata key=\"LABEL-COLOR\">9.9\u003C/data>\n\u003Cdata key=\"THICKNESS\">0\u003C/data>\n\u003Cdata key=\"LABEL\">\u003C/data>\n\u003Cdata key=\"SHAPE\">default\u003C/data>\n\u003Cdata key=\"BREED\">friendships\u003C/data>\n\u003Cdata key=\"COLOR\">5\u003C/data>\n\u003Cdata key=\"HIDDEN?\">false\u003C/data>\n\u003C/edge>\n\u003C/graph>\n\u003C/graphml>\n","XML","",[45,7046,7042],{"__ignoreMap":7044},[33,7048,7049],{},"A few things to notice:",[160,7051,7052,7055,7068,7088],{},[163,7053,7054],{},"The breed is stored as data field, both for nodes and edges.  Note that the breed is stored in its plural form.",[163,7056,7057,7058,264,7061,264,7063,1817,7066,258],{},"The data includes both NetLogo’s internal variables and the variables that were defined as either ",[45,7059,7060],{},"breeds-own",[45,7062,5361],{},[45,7064,7065],{},"linkbreeds-own",[45,7067,3191],{},[163,7069,7070,7071,7074,7075,264,7078,136,7081,7084,7085,7087],{},"Each key gets an ",[45,7072,7073],{},"attr.type"," based on the actual types of the values contained in the agent variables. The three possible types are ",[45,7076,7077],{},"\"string\"",[45,7079,7080],{},"\"double\"",[45,7082,7083],{},"\"boolean\"",". To determine the attribute type of a particular agent variable, the extension will look at the first agent in the graph. To see which agent is first, you can look at the result of ",[45,7086,365],{},". Note that variables containing other types of values, such as turtles, patches, lists, etc., will be stored as strings.",[163,7089,7090,7091,7109,7110,7125,7126,7131,7132,136,7135,7138,7139,258],{},"This example only has a directed link, and you will notice the ",[45,7092,7093,60,7097,7101,7105],{},[48,7094,7096],{"className":7095},[51,58],"\u003Cgraph",[48,7098,7100],{"className":7099},[51,58],"edgedefault=",[48,7102,7104],{"className":7103},[51,6717],"\"directed\"",[48,7106,7108],{"className":7107},[51,173],">"," element. If we had only undirected links, we would have ",[45,7111,7112,60,7115,7118,7122],{},[48,7113,7096],{"className":7114},[51,58],[48,7116,7100],{"className":7117},[51,58],[48,7119,7121],{"className":7120},[51,6717],"\"undirected\"",[48,7123,7108],{"className":7124},[51,173],". What if we try to mix both kinds of link? At the moment, the extension will save such a “mixed” graph as if it were an undirected graph (see ",[16,7127,7130],{"href":7128,"rel":7129},"https://github.com/NetLogo/NW-Extension/issues/58",[256],"this issue"," for more details). The order of the ",[45,7133,7134],{},"source",[45,7136,7137],{},"target"," will be respected, however, so if you know which breeds represent directed links, you can figure it out ",[37,7140,7141],{},"a posteriori",[1173,7143,1176,7146,1176,7151,7167,7179,7195,7202,7211,7285,7292,7301,7305,7324,7327],{"className":7144,"id":7145},[1632],"load-graphml",[237,7147,1637,7149,1176],{"id":7148},"nwload-graphml",[16,7150,1490],{"href":1487},[1641,7152,7155],{"id":7153,"className":7154},"nwload-graphml-file-name-optional-command-block",[14],[16,7156,1637,7159,1176],{"className":7157,"href":7158},[19],"#----nwload-graphml-file-name-optional-command-block--",[48,7160,7162,7163,60,7165],{"className":7161},[1652],"nw:load-graphml ",[1655,7164,6454],{},[1655,7166,5617],{},[33,7168,7169,7170,7178],{},"Loading a GraphML file into NetLogo with the network extension should be as simple as calling ",[45,7171,7172,60,7175],{},[48,7173,1490],{"className":7174},[51,58],[48,7176,7029],{"className":7177},[51,6717],", but there is a bit of preparation involved.",[33,7180,7181,7182,7184,7185,7187,7188,7190,7191,7194],{},"The key idea is that ",[45,7183,1490],{}," will try to assign the attribute values defined in the GraphML file to NetLogo agent variables of the same names (this is ",[37,7186,143],{}," case sensitive). The first one it tries to set is ",[45,7189,53],{}," if it is there, so the turtle or link will get the right breed and, hence, the right breed variables.  The load expects the ",[37,7192,7193],{},"plural form"," of the breed for a turtle or link, it will not recognize the singular form.",[33,7196,7197,7198,7201],{},"One special case is the ",[45,7199,7200],{},"who"," number, which is ignored by the importer if it is present as a GraphML attribute: NetLogo does not allow you to modify this number once a turtle is created and, besides, there could already be an existing turtle with that number.",[33,7203,7204,7205,7207,7208,7210],{},"The simplest case to handle is when the original GraphML file has been saved from NetLogo by using ",[45,7206,1480],{},". In this case, all you should have to do is to make sure that you have the same breed and variables definition as when you saved the file and you should get back your original graph. For example, if you want to load the file from the ",[45,7209,1480],{}," example above, you should have the following definitions:",[42,7212,7213],{},[45,7214,7215,54,7218,60,7221,65,7224,54,7229,65,7232,54,7237,60,7240,65,7243,54,7248,65,7251,7253,54,7258,60,7261,65,7264,7266,54,7271,60,7274,65,7277,54,7282,65],{},[48,7216,53],{"className":7217},[51,52],[48,7219,59],{"className":7220},[51,58],[48,7222,64],{"className":7223},[51,58],[48,7225,7227,6849],{"className":7226},[51,52],[70,7228],{},[48,7230,6853],{"className":7231},[51,58],[48,7233,7235,53],{"className":7234},[51,52],[70,7236],{},[48,7238,75],{"className":7239},[51,58],[48,7241,79],{"className":7242},[51,58],[48,7244,7246,6870],{"className":7245},[51,52],[70,7247],{},[48,7249,6874],{"className":7250},[51,58],[70,7252],{},[48,7254,7256,87],{"className":7255},[51,52],[70,7257],{},[48,7259,91],{"className":7260},[51,58],[48,7262,95],{"className":7263},[51,58],[70,7265],{},[48,7267,7269,101],{"className":7268},[51,52],[70,7270],{},[48,7272,105],{"className":7273},[51,58],[48,7275,109],{"className":7276},[51,58],[48,7278,7280,6906],{"className":7279},[51,52],[70,7281],{},[48,7283,6910],{"className":7284},[51,58],[33,7286,7287,7288,258],{},"Loading a graph that was saved from a different program than NetLogo is quite possible as well, but it may take a bit of tinkering to get all the attribute-variable match up right. If you encounter major problems, please do not hesitate to ",[16,7289,7291],{"href":4859,"rel":7290},[256],"open an issue",[33,7293,7294,7295,7297,7298,7300],{},"The extension will try to assign the type defined by ",[45,7296,7073],{}," to each variable that it loads. If it’s unable to convert it to that type, it will load it as a string. If ",[45,7299,7073],{}," is not defined, or is set to an unknown value, the extension will first try to load the value as a double, then try it as a boolean, and finally fall back on a string.",[33,7302,5638,7303,5641],{},[37,7304,5617],{},[42,7306,7307],{},[45,7308,7309,60,7312,54,7315,60,7318,60,7321,65],{},[48,7310,1490],{"className":7311},[51,58],[48,7313,7029],{"className":7314},[51,6717],[48,7316,622],{"className":7317},[51,328],[48,7319,295],{"className":7320},[51,173],[48,7322,304],{"className":7323},[51,303],[33,7325,7326],{},"Note that this command block can be used to build a list or an agentset containing the newly created nodes:",[42,7328,7329],{},[45,7330,7331,60,7334,7338,7339,7341,60,7344,604,7347,607,7349,60,7352,60,7355,60,7359,60,7363,7366,631,7368,7370,60,7373,60,7377,60,7380],{},[48,7332,2280],{"className":7333},[51,328],[48,7335,7337],{"className":7336},[51,58],"node-list"," []",[70,7340],{},[48,7342,1490],{"className":7343},[51,58],[48,7345,7029],{"className":7346},[51,6717],[70,7348],{},[48,7350,622],{"className":7351},[51,328],[48,7353,7337],{"className":7354},[51,58],[48,7356,7358],{"className":7357},[51,173],"lput",[48,7360,7362],{"className":7361},[51,173],"self",[48,7364,7337],{"className":7365},[51,58],[70,7367],{},[70,7369],{},[48,7371,2280],{"className":7372},[51,328],[48,7374,7376],{"className":7375},[51,58],"node-set",[48,7378,308],{"className":7379},[51,173],[48,7381,7337],{"className":7382},[51,58],[1173,7384,1176,7387,1176,7392,7414,7417,7448,7457,7460,7468],{"className":7385,"id":7386},[1632],"load",[237,7388,1637,7390,1176],{"id":7389},"nwload",[16,7391,1500],{"href":1497},[1641,7393,7396],{"id":7394,"className":7395},"nwload-file-name-default-turtle-breed-default-link-breed-optional-command-block",[14],[16,7397,1637,7400,1176],{"className":7398,"href":7399},[19],"#----nwload-file-name-default-turtle-breed-default-link-breed-optional-command-block--",[48,7401,7403,7404,60,7406,60,7409,60,7412],{"className":7402},[1652],"nw:load ",[1655,7405,6454],{},[1655,7407,7408],{},"default-turtle-breed",[1655,7410,7411],{},"default-link-breed",[1655,7413,5617],{},[33,7415,7416],{},"Filetype specific variants:",[160,7418,7419,7423,7428,7433,7438,7443],{},[163,7420,7421],{},[45,7422,1500],{},[163,7424,7425],{},[45,7426,7427],{},"nw:load-dl",[163,7429,7430],{},[45,7431,7432],{},"nw:load-gdf",[163,7434,7435],{},[45,7436,7437],{},"nw:load-gexf",[163,7439,7440],{},[45,7441,7442],{},"nw:load-gml",[163,7444,7445],{},[45,7446,7447],{},"nw:load-vna",[33,7449,7450,7451,7453,7454,7456],{},"Import the given file into NetLogo. Like ",[45,7452,1490],{},", the importer will do its best to match node and edge attributes in the file with turtle and link variables in NetLogo. If ",[45,7455,53],{}," is specified for nodes and edges in the file and exists in NetLogo, it will be used. Otherwise, the default turtle and link breeds are used.",[33,7458,7459],{},"Limitations:",[160,7461,7462],{},[163,7463,7464,7465,7467],{},"Multigraphs are not supported in importing. Even if the file format supports it (and many don’t), only the first link will be used on import. This is due to a limitation in the parsing libraries NW uses. ",[45,7466,1490],{}," does support multigraphs with the normal NetLogo limitation that two turtles can share more than one link only if all the links are of different breeds.",[33,7469,7470,7472,7473,7476,7477,258],{},[45,7471,1500],{}," determines the file-type of given file based on the extension and calls the corresponding ",[45,7474,7475],{},"load-*"," primitive on it. Note that GraphML must be imported with ",[45,7478,1490],{},[1173,7480,1176,7483,1176,7488,7502,7504,7531,7534,7536,7601],{"className":7481,"id":7482},[1632],"save",[237,7484,1637,7486,1176],{"id":7485},"nwsave",[16,7487,1510],{"href":1507},[1641,7489,7492],{"id":7490,"className":7491},"nwsave-file-name",[14],[16,7493,1637,7496,1176],{"className":7494,"href":7495},[19],"#----nwsave-file-name--",[48,7497,7499,7500],{"className":7498},[1652],"nw:save ",[1655,7501,6454],{},[33,7503,7416],{},[160,7505,7506,7511,7516,7521,7526],{},[163,7507,7508],{},[45,7509,7510],{},"nw:save-dl",[163,7512,7513],{},[45,7514,7515],{},"nw:save-gdf",[163,7517,7518],{},[45,7519,7520],{},"nw:save-gexf",[163,7522,7523],{},[45,7524,7525],{},"nw:save-gml",[163,7527,7528],{},[45,7529,7530],{},"nw:save-vna",[33,7532,7533],{},"Export the network context in the given format to the given file. Turtle and link attributes will be exported to formats that support node and edge properties.",[33,7535,7459],{},[160,7537,7538,7579,7582,7585,7595],{},[163,7539,7540,136,7543,7546,7547,136,7550,7553,7554,136,7556,7558,7559,136,7561,7563,7564,136,7566,7568,7569,136,7571,7573,7574,136,7576,7578],{},[45,7541,7542],{},"x",[45,7544,7545],{},"y"," (not ",[45,7548,7549],{},"xcor",[45,7551,7552],{},"ycor",") can only be numbers. ",[45,7555,7542],{},[45,7557,7545],{}," are commonly used in formats pertaining to position and behind the scenes NW uses Gephi’s libraries for exporting. Furthermore, ",[45,7560,7542],{},[45,7562,7545],{}," will be added even if they didn’t exist in the model. Again, this is because NW uses Gephi’s libraries which assume that nodes have positions stored in ",[45,7565,7542],{},[45,7567,7545],{},". If you wish to export to Gephi specifically, we recommend creating ",[45,7570,7542],{},[45,7572,7545],{}," turtles variables and setting them to ",[45,7575,7549],{},[45,7577,7552],{}," before export.",[163,7580,7581],{},"Color will be exported in a standard RGB format. This should hopefully increase compatibility with other programs.",[163,7583,7584],{},"Turtle and link variables that contain values of different types will be stored as strings. Unfortunately, most network formats require that node and attributes have a single type.",[163,7586,7587,7588,7591,7592,7594],{},"Many programs use ",[45,7589,7590],{},"label"," to store the id of nodes. Thus, if you’re having trouble importing data exported from NetLogo into another program, you might try setting turtles’ labels to their ",[45,7593,7200],{}," number.",[163,7596,7597,7598,7600],{},"Multigraphs are not supported. Thus, two turtles can share at most one link. ",[45,7599,1480],{}," does support multigraphs, so use that if turtles can have more than one type of link connecting them.",[33,7602,7603,7605,7606,7609,7610,258],{},[45,7604,1510],{}," determines the file-type of the given file based on the extension and calls the corresponding ",[45,7607,7608],{},"save-*"," primitive on it. Note that GraphML must be exported with ",[45,7611,1480],{},{"title":7044,"searchDepth":7613,"depth":7614,"links":7615},5,3,[7616,7620,7621,7622],{"id":25,"depth":7617,"text":31,"children":7618},2,[7619],{"id":239,"depth":7614,"text":245},{"id":967,"depth":7617,"text":973},{"id":1010,"depth":7617,"text":1016},{"id":1149,"depth":7617,"text":1155,"children":7623},[7624,7625,7626,7627,7628,7629,7630,7631,7632,7638,7642,7647,7652,7657,7662,7667,7672,7677,7682,7687,7691,7696,7700,7704,7708,7712,7717,7721,7725,7729,7733,7737,7741,7745,7750,7755,7760,7765,7770,7775,7780,7785,7790,7795,7800,7805,7810],{"id":1165,"depth":7614,"text":1171},{"id":1230,"depth":7614,"text":1236},{"id":1289,"depth":7614,"text":1295},{"id":1318,"depth":7614,"text":1324},{"id":1355,"depth":7614,"text":1361},{"id":1444,"depth":7614,"text":1450},{"id":1513,"depth":7614,"text":1519},{"id":1622,"depth":7614,"text":1628},{"id":1636,"depth":7614,"text":7633,"children":7634},"\n    nw:set-context\n  ",[7635],{"id":1643,"depth":7636,"text":7637},4,"\n    nw:set-context turtleset linkset\n  ",{"id":1691,"depth":7614,"text":7639,"children":7640},"\n    nw:get-context\n  ",[7641],{"id":1696,"depth":7636,"text":7639},{"id":2490,"depth":7614,"text":7643,"children":7644},"\n    nw:with-context\n  ",[7645],{"id":2495,"depth":7636,"text":7646},"\n    nw:with-context turtleset linkset command-block\n  ",{"id":2654,"depth":7614,"text":7648,"children":7649},"\n    nw:turtles-in-radius\n  ",[7650],{"id":2659,"depth":7636,"text":7651},"\n    nw:turtles-in-radius radius\n  ",{"id":2908,"depth":7614,"text":7653,"children":7654},"\n    nw:turtles-in-reverse-radius\n  ",[7655],{"id":2913,"depth":7636,"text":7656},"\n    nw:turtles-in-reverse-radius radius\n  ",{"id":2953,"depth":7614,"text":7658,"children":7659},"\n    nw:distance-to\n  ",[7660],{"id":2958,"depth":7636,"text":7661},"\n    nw:distance-to target-turtle\n  ",{"id":3152,"depth":7614,"text":7663,"children":7664},"\n    nw:weighted-distance-to\n  ",[7665],{"id":3157,"depth":7636,"text":7666},"\n    nw:weighted-distance-to target-turtle weight-variable\n  ",{"id":3421,"depth":7614,"text":7668,"children":7669},"\n    nw:path-to\n  ",[7670],{"id":3426,"depth":7636,"text":7671},"\n    nw:path-to target-turtle\n  ",{"id":3649,"depth":7614,"text":7673,"children":7674},"\n    nw:turtles-on-path-to\n  ",[7675],{"id":3654,"depth":7636,"text":7676},"\n    nw:turtles-on-path-to target-turtle\n  ",{"id":3866,"depth":7614,"text":7678,"children":7679},"\n    nw:weighted-path-to\n  ",[7680],{"id":3871,"depth":7636,"text":7681},"\n    nw:weighted-path-to target-turtle weight-variable\n  ",{"id":4149,"depth":7614,"text":7683,"children":7684},"\n    nw:turtles-on-weighted-path-to\n  ",[7685],{"id":4154,"depth":7636,"text":7686},"\n    nw:turtles-on-weighted-path-to target-turtle weight-variable\n  ",{"id":4429,"depth":7614,"text":7688,"children":7689},"\n    nw:mean-path-length\n  ",[7690],{"id":4434,"depth":7636,"text":7688},{"id":4602,"depth":7614,"text":7692,"children":7693},"\n    nw:mean-weighted-path-length\n  ",[7694],{"id":4607,"depth":7636,"text":7695},"\n    nw:mean-weighted-path-length weight-variable\n  ",{"id":4799,"depth":7614,"text":7697,"children":7698},"\n    nw:betweenness-centrality\n  ",[7699],{"id":4804,"depth":7636,"text":7697},{"id":4831,"depth":7614,"text":7701,"children":7702},"\n    nw:eigenvector-centrality\n  ",[7703],{"id":4836,"depth":7636,"text":7701},{"id":4873,"depth":7614,"text":7705,"children":7706},"\n    nw:page-rank\n  ",[7707],{"id":4878,"depth":7636,"text":7705},{"id":4909,"depth":7614,"text":7709,"children":7710},"\n    nw:closeness-centrality\n  ",[7711],{"id":4914,"depth":7636,"text":7709},{"id":4950,"depth":7614,"text":7713,"children":7714},"\n    nw:weighted-closeness-centrality\n  ",[7715],{"id":4955,"depth":7636,"text":7716},"\n    nw:weighted-closeness-centrality link-weight-variable\n  ",{"id":4983,"depth":7614,"text":7718,"children":7719},"\n    nw:clustering-coefficient\n  ",[7720],{"id":4988,"depth":7636,"text":7718},{"id":5176,"depth":7614,"text":7722,"children":7723},"\n    nw:modularity\n  ",[7724],{"id":5181,"depth":7636,"text":7722},{"id":5252,"depth":7614,"text":7726,"children":7727},"\n    nw:bicomponent-clusters\n  ",[7728],{"id":5257,"depth":7636,"text":7726},{"id":5281,"depth":7614,"text":7730,"children":7731},"\n    nw:weak-component-clusters\n  ",[7732],{"id":5286,"depth":7636,"text":7730},{"id":5320,"depth":7614,"text":7734,"children":7735},"\n    nw:louvain-communities\n  ",[7736],{"id":5325,"depth":7636,"text":7734},{"id":5506,"depth":7614,"text":7738,"children":7739},"\n    nw:maximal-cliques\n  ",[7740],{"id":5511,"depth":7636,"text":7738},{"id":5547,"depth":7614,"text":7742,"children":7743},"\n    nw:biggest-maximal-cliques\n  ",[7744],{"id":5552,"depth":7636,"text":7742},{"id":5588,"depth":7614,"text":7746,"children":7747},"\n    nw:generate-preferential-attachment\n  ",[7748],{"id":5593,"depth":7636,"text":7749},"\n    nw:generate-preferential-attachment turtle-breed link-breed num-nodes min-degree optional-command-block\n  ",{"id":5677,"depth":7614,"text":7751,"children":7752},"\n    nw:generate-random\n  ",[7753],{"id":5682,"depth":7636,"text":7754},"\n    nw:generate-random turtle-breed link-breed num-nodes connection-probability optional-command-block\n  ",{"id":5762,"depth":7614,"text":7756,"children":7757},"\n    nw:generate-watts-strogatz\n  ",[7758],{"id":5767,"depth":7636,"text":7759},"\n    nw:generate-watts-strogatz turtle-breed link-breed num-nodes neighborhood-size rewire-probability optional-command-block\n  ",{"id":5855,"depth":7614,"text":7761,"children":7762},"\n    nw:generate-small-world\n  ",[7763],{"id":5860,"depth":7636,"text":7764},"\n    nw:generate-small-world turtle-breed link-breed row-count column-count clustering-exponent is-toroidal optional-command-block\n  ",{"id":6040,"depth":7614,"text":7766,"children":7767},"\n    nw:generate-lattice-2d\n  ",[7768],{"id":6045,"depth":7636,"text":7769},"\n    nw:generate-lattice-2d turtle-breed link-breed row-count column-count is-toroidal optional-command-block\n  ",{"id":6190,"depth":7614,"text":7771,"children":7772},"\n    nw:generate-ring\n  ",[7773],{"id":6195,"depth":7636,"text":7774},"\n    nw:generate-ring turtle-breed link-breed num-nodes optional-command-block\n  ",{"id":6263,"depth":7614,"text":7776,"children":7777},"\n    nw:generate-star\n  ",[7778],{"id":6268,"depth":7636,"text":7779},"\n    nw:generate-star turtle-breed link-breed num-nodes optional-command-block\n  ",{"id":6329,"depth":7614,"text":7781,"children":7782},"\n    nw:generate-wheel\n  ",[7783],{"id":6334,"depth":7636,"text":7784},"\n    nw:generate-wheel turtle-breed link-breed num-nodes optional-command-block\n  ",{"id":6437,"depth":7614,"text":7786,"children":7787},"\n    nw:save-matrix\n  ",[7788],{"id":6442,"depth":7636,"text":7789},"\n    nw:save-matrix file-name\n  ",{"id":6600,"depth":7614,"text":7791,"children":7792},"\n    nw:load-matrix\n  ",[7793],{"id":6605,"depth":7636,"text":7794},"\n    nw:load-matrix file-name turtle-breed link-breed optional-command-block\n  ",{"id":6801,"depth":7614,"text":7796,"children":7797},"\n    nw:save-graphml\n  ",[7798],{"id":6806,"depth":7636,"text":7799},"\n    nw:save-graphml file-name\n  ",{"id":7148,"depth":7614,"text":7801,"children":7802},"\n    nw:load-graphml\n  ",[7803],{"id":7153,"depth":7636,"text":7804},"\n    nw:load-graphml file-name optional-command-block\n  ",{"id":7389,"depth":7614,"text":7806,"children":7807},"\n    nw:load\n  ",[7808],{"id":7394,"depth":7636,"text":7809},"\n    nw:load file-name default-turtle-breed default-link-breed optional-command-block\n  ",{"id":7485,"depth":7614,"text":7811,"children":7812},"\n    nw:save\n  ",[7813],{"id":7490,"depth":7636,"text":7814},"\n    nw:save file-name\n  ","Documentation for the Networks extension.","md",{"source":7818,"metadataOutputPath":7819,"projectConfig":7820,"language":7827,"inheritFrom":7835,"output":7834,"version":7821,"icon":7836,"extensionName":7837,"assetsRoot":7822},"../../external/extensions/nw/nw.md","content/nw.metadata.yaml",{"version":7821,"projectRoot":258,"scanRoot":7822,"outputRoot":7823,"defaults":7824,"engine":7830,"partials":7831,"dedupeIdenticalDiskWrites":7834},"7.0.4","/home/runner/work/Helio/Helio/external/extensions/nw","content",{"inheritFrom":7825,"language":7827,"output":7828,"extension":7816,"title":7829,"version":7821},[7826],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":7832,"extensions":7833},[258],[7830,7816],true,[7826],"i-lucide-network",{"shortName":2088,"fullName":21},"/nw",{"title":5,"description":7815},"qV-VgsIphURA2bC1Dc91c5gb3L4bpe_xiZ8K_MXUKLU",[7842,7847],{"title":7843,"path":7844,"stem":7845,"description":7846},"NetLogo Preferences","/netlogopreferences","netlogopreferences","Guide to configuring NetLogo preferences and settings to customize the environment for your workflow and needs.",{"title":7848,"path":7849,"stem":7850,"description":7851},"Networks Extension Dictionary: betweenness-centrality","/nw/betweenness-centrality","nw/betweenness-centrality","Documentation for the betweenness-centrality primitive.",1777657789899]