[{"data":1,"prerenderedAt":798},["ShallowReactive",2],{"/dict/create-link":3,"/dict/create-link-surround":787},{"id":4,"title":5,"body":6,"description":752,"extension":753,"meta":754,"navigation":773,"path":783,"seo":784,"stem":785,"__hash__":786},"content/dict/create-link.md","NetLogo Dictionary: create-link",{"type":7,"value":8,"toc":741},"minimark",[9],[10,11,16,94,348,351,375,382,385,388,391,570],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","create-link","region",[17,18,20,27,31,35,39,43,47,59,66,73,80,87],"h3",{"id":19},"create-breed-tocreate-breeds-tocreate-breed-fromcreate-breeds-fromcreate-breed-withcreate-breeds-withcreate-link-to40create-links-to40create-link-from40create-links-from40create-link-with40create-links-with40",[21,22,26],"a",{"href":23,"role":24,"ariaLabel":25},"#create-link","doc-noteref","Reference to create-\u003Cbreed>-to","\ncreate-\u003Cbreed>-to\n",[21,28,30],{"href":23,"role":24,"ariaLabel":29},"Reference to create-\u003Cbreeds>-to","\ncreate-\u003Cbreeds>-to\n",[21,32,34],{"href":23,"role":24,"ariaLabel":33},"Reference to create-\u003Cbreed>-from","\ncreate-\u003Cbreed>-from\n",[21,36,38],{"href":23,"role":24,"ariaLabel":37},"Reference to create-\u003Cbreeds>-from","\ncreate-\u003Cbreeds>-from\n",[21,40,42],{"href":23,"role":24,"ariaLabel":41},"Reference to create-\u003Cbreed>-with","\ncreate-\u003Cbreed>-with\n",[21,44,46],{"href":23,"role":24,"ariaLabel":45},"Reference to create-\u003Cbreeds>-with","\ncreate-\u003Cbreeds>-with\n",[21,48,50,51],{"href":23,"role":24,"ariaLabel":49},"Reference to create-link-to","\ncreate-link-to\n",[52,53,58],"span",{"className":54,"role":56,"ariaLabel":57},[55],"since","note","Since version","\n4.0\n",[21,60,62,63],{"href":23,"role":24,"ariaLabel":61},"Reference to create-links-to","\ncreate-links-to\n",[52,64,58],{"className":65,"role":56,"ariaLabel":57},[55],[21,67,69,70],{"href":23,"role":24,"ariaLabel":68},"Reference to create-link-from","\ncreate-link-from\n",[52,71,58],{"className":72,"role":56,"ariaLabel":57},[55],[21,74,76,77],{"href":23,"role":24,"ariaLabel":75},"Reference to create-links-from","\ncreate-links-from\n",[52,78,58],{"className":79,"role":56,"ariaLabel":57},[55],[21,81,83,84],{"href":23,"role":24,"ariaLabel":82},"Reference to create-link-with","\ncreate-link-with\n",[52,85,58],{"className":86,"role":56,"ariaLabel":57},[55],[21,88,90,91],{"href":23,"role":24,"ariaLabel":89},"Reference to create-links-with","\ncreate-links-with\n",[52,92,58],{"className":93,"role":56,"ariaLabel":57},[55],[95,96,100],"h4",{"id":97,"className":98},"create-breed-to-turtlecreate-breed-to-turtle-commandscreate-breed-from-turtlecreate-breed-from-turtle-commandscreate-breed-with-turtlecreate-breed-with-turtle-commandscreate-breeds-to-turtlesetcreate-breeds-to-turtleset-commandscreate-breeds-from-turtlesetcreate-breeds-from-turtleset-commandscreate-breeds-with-turtlesetcreate-breeds-with-turtleset-commandscreate-link-to-turtlecreate-link-to-turtle-commandscreate-link-from-turtlecreate-link-from-turtle-commandscreate-link-with-turtlecreate-link-with-turtle-commandscreate-links-to-turtlesetcreate-links-to-turtleset-commandscreate-links-from-turtlesetcreate-links-from-turtleset-commandscreate-links-with-turtlesetcreate-links-with-turtleset-commands",[99],"section-heading",[21,101,105,117,130,138,149,157,168,177,188,196,207,215,226,234,245,253,264,272,283,291,302,310,321,329,340],{"className":102,"href":104},[103],"section-anchor","#create-breed-to-turtlecreate-breed-to-turtle--commandscreate-breed-from-turtlecreate-breed-from-turtle--commandscreate-breed-with-turtlecreate-breed-with-turtle--commandscreate-breeds-to-turtlesetcreate-breeds-to-turtleset--commandscreate-breeds-from-turtlesetcreate-breeds-from-turtleset--commandscreate-breeds-with-turtlesetcreate-breeds-with-turtleset--commandscreate-link-to-turtlecreate-link-to-turtle--commandscreate-link-from-turtlecreate-link-from-turtle--commandscreate-link-with-turtlecreate-link-with-turtle--commandscreate-links-to-turtlesetcreate-links-to-turtleset--commandscreate-links-from-turtlesetcreate-links-from-turtleset--commandscreate-links-with-turtlesetcreate-links-with-turtleset--commands",[52,106,109],{"className":107},[108],"prim_example",[110,111,112,113],"p",{},"create-\u003Cbreed>-to ",[114,115,116],"em",{},"turtle",[52,118,120],{"className":119},[108],[110,121,112,122,124,125],{},[114,123,116],{}," ",[52,126,124,127],{},[114,128,129],{},"commands",[52,131,133],{"className":132},[108],[110,134,135,136],{},"create-\u003Cbreed>-from ",[114,137,116],{},[52,139,141],{"className":140},[108],[110,142,135,143,124,145],{},[114,144,116],{},[52,146,124,147],{},[114,148,129],{},[52,150,152],{"className":151},[108],[110,153,154,155],{},"create-\u003Cbreed>-with ",[114,156,116],{},[52,158,160],{"className":159},[108],[110,161,154,162,124,164],{},[114,163,116],{},[52,165,124,166],{},[114,167,129],{},[52,169,171],{"className":170},[108],[110,172,173,174],{},"create-\u003Cbreeds>-to ",[114,175,176],{},"turtleset",[52,178,180],{"className":179},[108],[110,181,173,182,124,184],{},[114,183,176],{},[52,185,124,186],{},[114,187,129],{},[52,189,191],{"className":190},[108],[110,192,193,194],{},"create-\u003Cbreeds>-from ",[114,195,176],{},[52,197,199],{"className":198},[108],[110,200,193,201,124,203],{},[114,202,176],{},[52,204,124,205],{},[114,206,129],{},[52,208,210],{"className":209},[108],[110,211,212,213],{},"create-\u003Cbreeds>-with ",[114,214,176],{},[52,216,218],{"className":217},[108],[110,219,212,220,124,222],{},[114,221,176],{},[52,223,124,224],{},[114,225,129],{},[52,227,229],{"className":228},[108],[110,230,231,232],{},"create-link-to ",[114,233,116],{},[52,235,237],{"className":236},[108],[110,238,231,239,124,241],{},[114,240,116],{},[52,242,124,243],{},[114,244,129],{},[52,246,248],{"className":247},[108],[110,249,250,251],{},"create-link-from ",[114,252,116],{},[52,254,256],{"className":255},[108],[110,257,250,258,124,260],{},[114,259,116],{},[52,261,124,262],{},[114,263,129],{},[52,265,267],{"className":266},[108],[110,268,269,270],{},"create-link-with ",[114,271,116],{},[52,273,275],{"className":274},[108],[110,276,269,277,124,279],{},[114,278,116],{},[52,280,124,281],{},[114,282,129],{},[52,284,286],{"className":285},[108],[110,287,288,289],{},"create-links-to ",[114,290,176],{},[52,292,294],{"className":293},[108],[110,295,288,296,124,298],{},[114,297,176],{},[52,299,124,300],{},[114,301,129],{},[52,303,305],{"className":304},[108],[110,306,307,308],{},"create-links-from ",[114,309,176],{},[52,311,313],{"className":312},[108],[110,314,307,315,124,317],{},[114,316,176],{},[52,318,124,319],{},[114,320,129],{},[52,322,324],{"className":323},[108],[110,325,326,327],{},"create-links-with ",[114,328,176],{},[52,330,332],{"className":331},[108],[110,333,326,334,124,336],{},[114,335,176],{},[52,337,124,338],{},[114,339,129],{},[341,342],"img",{"alt":343,"src":344,"width":345,"height":345,"style":346},"Turtle Command","/_content/images/turtle.png",16,{"aspectRatio":347},"56/56",[110,349,350],{},"Used for creating breeded and unbreeded links between turtles.",[110,352,353,357,358,361,362,365,366,361,368,371,372,374],{},[354,355,356],"code",{},"create-link-with"," creates an undirected link between the caller and ",[114,359,360],{},"agent",". ",[354,363,364],{},"create-link-to"," creates a directed link from the\ncaller to ",[114,367,360],{},[354,369,370],{},"create-link-from"," creates a directed link\nfrom ",[114,373,360],{}," to the caller.",[110,376,377,378,381],{},"When the plural form of the breed name is used, an ",[114,379,380],{},"agentset","is expected instead of an agent and links are created between the\ncaller and all agents in the agentset.",[110,383,384],{},"The optional command block is the set of commands each newly formed\nlink runs. (The links are created all at once then run one at a\ntime, in random order.)",[110,386,387],{},"A node cannot be linked to itself. Also, you cannot have more than\none undirected link of the same breed between the same two nodes,\nnor can you have more than one directed link of the same breed\ngoing in the same direction between two nodes.",[110,389,390],{},"If you try to create a link where one (of the same breed) already\nexists, nothing happens. If you try to create a link from a turtle\nto itself you get a runtime error.",[392,393,394],"pre",{},[354,395,396,124,402,407,410,411,416,410,418,124,422,427,410,429,434,410,436,440,410,442,124,446,124,450,454,455,124,459,124,463,467,468,410,470,124,474,124,478,124,482,486,410,488,492,410,494,124,497,124,500,454,503,124,506,124,509,467,513,410,515,124,518,124,521,124,524,528,410,530,124,533,124,536,454,540,124,543,124,546,467,549,410,551,124,554,124,557,124,560,564],{},[52,397,401],{"className":398},[399,400],"token","keyword","to",[52,403,406],{"className":404},[399,405],"variable","setup",[408,409],"br",{},"  ",[52,412,415],{"className":413},[399,414],"command","clear-all",[408,417],{},[52,419,421],{"className":420},[399,414],"create-turtles",[52,423,426],{"className":424},[399,425],"number","5",[408,428],{},[52,430,433],{"className":431},[399,432],"comment",";; turtle 1 creates links with all other turtles",[408,435],{},[52,437,439],{"className":438},[399,432],";; the link between the turtle and itself is ignored",[408,441],{},[52,443,445],{"className":444},[399,414],"ask",[52,447,116],{"className":448},[399,449],"reporter",[52,451,453],{"className":452},[399,425],"0"," [ ",[52,456,458],{"className":457},[399,414],"create-links-with",[52,460,462],{"className":461},[399,449],"other",[52,464,466],{"className":465},[399,449],"turtles"," ]",[408,469],{},[52,471,473],{"className":472},[399,414],"show",[52,475,477],{"className":476},[399,449],"count",[52,479,481],{"className":480},[399,449],"links",[52,483,485],{"className":484},[399,432],";; shows 4",[408,487],{},[52,489,491],{"className":490},[399,432],";; this does nothing since the link already exists",[408,493],{},[52,495,445],{"className":496},[399,414],[52,498,116],{"className":499},[399,449],[52,501,453],{"className":502},[399,425],[52,504,356],{"className":505},[399,414],[52,507,116],{"className":508},[399,449],[52,510,512],{"className":511},[399,425],"1",[408,514],{},[52,516,473],{"className":517},[399,414],[52,519,477],{"className":520},[399,449],[52,522,481],{"className":523},[399,449],[52,525,527],{"className":526},[399,432],";; shows 4 since the previous link already existed",[408,529],{},[52,531,445],{"className":532},[399,414],[52,534,116],{"className":535},[399,449],[52,537,539],{"className":538},[399,425],"2",[52,541,356],{"className":542},[399,414],[52,544,116],{"className":545},[399,449],[52,547,512],{"className":548},[399,425],[408,550],{},[52,552,473],{"className":553},[399,414],[52,555,477],{"className":556},[399,449],[52,558,481],{"className":559},[399,449],[52,561,563],{"className":562},[399,432],";; shows 5",[52,565,567,569],{"className":566},[399,400],[408,568],{},"end",[392,571,572],{},[354,573,574,578,579,124,583,587,588,578,594,124,598,587,602,604,124,609,612,410,614,617,410,619,124,622,625,410,627,631,410,633,637,410,639,124,642,124,645,454,648,124,652,124,655,467,658,410,660,124,663,124,666,454,669,124,673,124,676,467,679,410,681,124,684,124,687,124,690,694,410,696,700,410,702,124,705,124,708,454,711,124,715,124,718,467,721,410,723,124,726,124,729,124,732,736],{},[52,575,577],{"className":576},[399,400],"directed-link-breed"," [",[52,580,582],{"className":581},[399,405],"red-links",[52,584,586],{"className":585},[399,405],"red-link","]",[52,589,591,593],{"className":590},[399,400],[408,592],{},"undirected-link-breed",[52,595,597],{"className":596},[399,405],"blue-links",[52,599,601],{"className":600},[399,405],"blue-link",[408,603],{},[52,605,607,401],{"className":606},[399,400],[408,608],{},[52,610,406],{"className":611},[399,405],[408,613],{},[52,615,415],{"className":616},[399,414],[408,618],{},[52,620,421],{"className":621},[399,414],[52,623,426],{"className":624},[399,425],[408,626],{},[52,628,630],{"className":629},[399,432],";; create links in both directions between turtle 0",[408,632],{},[52,634,636],{"className":635},[399,432],";; and all other turtles",[408,638],{},[52,640,445],{"className":641},[399,414],[52,643,116],{"className":644},[399,449],[52,646,453],{"className":647},[399,425],[52,649,651],{"className":650},[399,405],"create-red-links-to",[52,653,462],{"className":654},[399,449],[52,656,466],{"className":657},[399,449],[408,659],{},[52,661,445],{"className":662},[399,414],[52,664,116],{"className":665},[399,449],[52,667,453],{"className":668},[399,425],[52,670,672],{"className":671},[399,405],"create-red-links-from",[52,674,462],{"className":675},[399,449],[52,677,466],{"className":678},[399,449],[408,680],{},[52,682,473],{"className":683},[399,414],[52,685,477],{"className":686},[399,449],[52,688,481],{"className":689},[399,449],[52,691,693],{"className":692},[399,432],";; shows 8",[408,695],{},[52,697,699],{"className":698},[399,432],";; now create undirected links between turtle 0 and other turtles",[408,701],{},[52,703,445],{"className":704},[399,414],[52,706,116],{"className":707},[399,449],[52,709,453],{"className":710},[399,425],[52,712,714],{"className":713},[399,405],"create-blue-links-with",[52,716,462],{"className":717},[399,449],[52,719,466],{"className":720},[399,449],[408,722],{},[52,724,473],{"className":725},[399,414],[52,727,477],{"className":728},[399,449],[52,730,481],{"className":731},[399,449],[52,733,735],{"className":734},[399,432],";; shows 12",[52,737,739,569],{"className":738},[399,400],[408,740],{},{"title":742,"searchDepth":743,"depth":744,"links":745},"",5,3,[746],{"id":19,"depth":744,"text":747,"children":748},"\ncreate-\u003Cbreed>-to\n\ncreate-\u003Cbreeds>-to\n\ncreate-\u003Cbreed>-from\n\ncreate-\u003Cbreeds>-from\n\ncreate-\u003Cbreed>-with\n\ncreate-\u003Cbreeds>-with\n\ncreate-link-to\n\n4.0\n\ncreate-links-to\n\n4.0\n\ncreate-link-from\n\n4.0\n\ncreate-links-from\n\n4.0\n\ncreate-link-with\n\n4.0\n\ncreate-links-with\n\n4.0\n",[749],{"id":97,"depth":750,"text":751},4,"create-\u003Cbreed>-to turtlecreate-\u003Cbreed>-to turtle  commandscreate-\u003Cbreed>-from turtlecreate-\u003Cbreed>-from turtle  commandscreate-\u003Cbreed>-with turtlecreate-\u003Cbreed>-with turtle  commandscreate-\u003Cbreeds>-to turtlesetcreate-\u003Cbreeds>-to turtleset  commandscreate-\u003Cbreeds>-from turtlesetcreate-\u003Cbreeds>-from turtleset  commandscreate-\u003Cbreeds>-with turtlesetcreate-\u003Cbreeds>-with turtleset  commandscreate-link-to turtlecreate-link-to turtle  commandscreate-link-from turtlecreate-link-from turtle  commandscreate-link-with turtlecreate-link-with turtle  commandscreate-links-to turtlesetcreate-links-to turtleset  commandscreate-links-from turtlesetcreate-links-from turtleset  commandscreate-links-with turtlesetcreate-links-with turtleset  commands","Documentation for the create-link primitive.","md",{"source":755,"metadataOutputPath":756,"projectConfig":757,"language":765,"inheritFrom":774,"output":773,"version":758,"layout":775,"dictionaryDisplayName":776,"dictionaryHomeDirectory":777,"indexFileURI":778,"currentItemId":14,"currentItemLabel":779,"primRoot":780,"icon":781,"assetsRoot":782},"autogen/dict/create-link.md","content/dict/create-link.metadata.yaml",{"version":758,"projectRoot":759,"scanRoot":760,"outputRoot":761,"defaults":762,"engine":768,"partials":769,"dedupeIdenticalDiskWrites":773},"7.0.4",".","autogen","content",{"inheritFrom":763,"language":765,"output":766,"extension":753,"title":767,"version":758},[764],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":770,"extensions":771},[759],[772,753],"mustache",true,[764],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","create-\u003Cbreed>-to, create-\u003Cbreeds>-to, create-\u003Cbreed>-from, create-\u003Cbreeds>-from, create-\u003Cbreed>-with, create-\u003Cbreeds>-with, create-link-to, create-links-to, create-link-from, create-links-from, create-link-with, create-links-with","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/create-link",{"title":5,"description":752},"dict/create-link","axcsYYiy7WCdbcbW3Uvx3as6TsBYDRhOruelrNPMTPs",[788,793],{"title":789,"path":790,"stem":791,"description":792},"NetLogo Dictionary: count","/dict/count","dict/count","Documentation for the count primitive.",{"title":794,"path":795,"stem":796,"description":797},"NetLogo Dictionary: create-ordered-turtles","/dict/create-ordered-turtles","dict/create-ordered-turtles","Documentation for the create-ordered-turtles primitive.",1777657802234]