[{"data":1,"prerenderedAt":318},["ShallowReactive",2],{"/dict/layout-spring":3,"/dict/layout-spring-surround":307},{"id":4,"title":5,"body":6,"description":274,"extension":275,"meta":276,"navigation":294,"path":303,"seo":304,"stem":305,"__hash__":306},"content/dict/layout-spring.md","NetLogo Dictionary: layout-spring",{"type":7,"value":8,"toc":263},"minimark",[9],[10,11,16,35,68,84,90,93,96,99,109],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","layout-spring","region",[17,18,20],"h3",{"id":19},"layout-spring40",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#layout-spring","doc-noteref","Reference to layout-spring","\nlayout-spring\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n4.0\n",[36,37,41],"h4",{"id":38,"className":39},"layout-spring-turtle-set-link-setspring-constant-spring-length-repulsion-constant",[40],"section-heading",[21,42,46],{"className":43,"href":45},[44],"section-anchor","#layout-spring-turtle-set-link-setspring-constant-spring-length-repulsion-constant",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54,58,59,58,62,58,65],"p",{},"layout-spring ",[55,56,57],"em",{},"turtle-set"," ",[55,60,61],{},"link-set**spring-constant",[55,63,64],{},"spring-length",[55,66,67],{},"repulsion-constant",[51,69,70,71,73,74,77,78,80,81,83],{},"Arranges the turtles in ",[55,72,57],{},", as if the links in ",[55,75,76],{},"link-set"," are springs and the turtles are repelling each\nother. Turtles that are connected by links in ",[55,79,76],{}," but\nnot included in ",[55,82,57],{}," are treated as anchors and are\nnot moved.",[51,85,86,89],{},[55,87,88],{},"spring-constant"," is a measure of the “tautness” of\nthe spring. It is the “resistance” to change in their\nlength. spring-constant is the force the spring would exert if\nit’s length were changed by 1 unit.",[51,91,92],{},"spring-length is the “zero-force” length or the natural\nlength of the springs. This is the length which all springs try to\nachieve either by pushing out their nodes or pulling them in.",[51,94,95],{},"repulsion-constant is a measure of repulsion between the nodes. It\nis the force that 2 nodes at a distance of 1 unit will exert on\neach other.",[51,97,98],{},"The repulsion effect tries to get the nodes as far as possible from\neach other, in order to avoid crowding and the spring effect tries\nto keep them at “about” a certain distance from the nodes\nthey are connected to. The result is the laying out of the whole\nnetwork in a way which highlights relationships among the nodes and\nat the same time is crowded less and is visually pleasing.",[51,100,101,102,108],{},"The layout algorithm is based on the Fruchterman-Reingold layout\nalgorithm. More information about this algorithm can be obtained ",[21,103,107],{"href":104,"rel":105},"http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.13.8444",[106],"nofollow","here",".",[110,111,112],"pre",{},[113,114,115,58,121,126,129,130,58,135,58,140,145,129,147,58,151,156,129,158,58,162,58,166,170,172,173,175,176,58,180,58,184,187,189,190,129,192,58,195,58,198,202,172,204,175,206,58,210,58,213,217,189,219,129,221,58,225,229,230,58,233,58,236,58,240,58,244,58,248,251,252,257],"code",{},[28,116,120],{"className":117},[118,119],"token","keyword","to",[28,122,125],{"className":123},[118,124],"variable","make-a-triangle",[127,128],"br",{},"  ",[28,131,134],{"className":132},[118,133],"command","set-default-shape",[28,136,139],{"className":137},[118,138],"reporter","turtles",[28,141,144],{"className":142},[118,143],"string","\"circle\"",[127,146],{},[28,148,150],{"className":149},[118,133],"crt",[28,152,155],{"className":153},[118,154],"number","3",[127,157],{},[28,159,161],{"className":160},[118,133],"ask",[28,163,165],{"className":164},[118,138],"turtle",[28,167,169],{"className":168},[118,154],"0",[127,171],{},"  [",[127,174],{},"    ",[28,177,179],{"className":178},[118,133],"create-links-with",[28,181,183],{"className":182},[118,138],"other",[28,185,139],{"className":186},[118,138],[127,188],{},"  ]",[127,191],{},[28,193,161],{"className":194},[118,133],[28,196,165],{"className":197},[118,138],[28,199,201],{"className":200},[118,154],"1",[127,203],{},[127,205],{},[28,207,209],{"className":208},[118,133],"create-link-with",[28,211,165],{"className":212},[118,138],[28,214,216],{"className":215},[118,154],"2",[127,218],{},[127,220],{},[28,222,224],{"className":223},[118,133],"repeat",[28,226,228],{"className":227},[118,154],"30"," [ ",[28,231,14],{"className":232},[118,133],[28,234,139],{"className":235},[118,138],[28,237,239],{"className":238},[118,138],"links",[28,241,243],{"className":242},[118,154],"0.2",[28,245,247],{"className":246},[118,154],"5",[28,249,201],{"className":250},[118,154]," ] ",[28,253,256],{"className":254},[118,255],"comment",";; lays the nodes in a triangle",[28,258,260,262],{"className":259},[118,119],[127,261],{},"end",{"title":264,"searchDepth":265,"depth":266,"links":267},"",5,3,[268],{"id":19,"depth":266,"text":269,"children":270},"\nlayout-spring\n\n4.0\n",[271],{"id":38,"depth":272,"text":273},4,"layout-spring turtle-set link-set**spring-constant spring-length repulsion-constant","Documentation for the layout-spring primitive.","md",{"source":277,"metadataOutputPath":278,"projectConfig":279,"language":286,"inheritFrom":295,"output":294,"version":280,"layout":296,"dictionaryDisplayName":297,"dictionaryHomeDirectory":298,"indexFileURI":299,"currentItemId":14,"currentItemLabel":14,"primRoot":300,"icon":301,"assetsRoot":302},"autogen/dict/layout-spring.md","content/dict/layout-spring.metadata.yaml",{"version":280,"projectRoot":108,"scanRoot":281,"outputRoot":282,"defaults":283,"engine":289,"partials":290,"dedupeIdenticalDiskWrites":294},"7.0.4","autogen","content",{"inheritFrom":284,"language":286,"output":287,"extension":275,"title":288,"version":280},[285],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":291,"extensions":292},[108],[293,275],"mustache",true,[285],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/layout-spring",{"title":5,"description":274},"dict/layout-spring","T6qesUChPsM9tnwyOazul3TGnS3je9GKmPWNWhhtYo4",[308,313],{"title":309,"path":310,"stem":311,"description":312},"NetLogo Dictionary: layout-radial","/dict/layout-radial","dict/layout-radial","Documentation for the layout-radial primitive.",{"title":314,"path":315,"stem":316,"description":317},"NetLogo Dictionary: layout-tutte","/dict/layout-tutte","dict/layout-tutte","Documentation for the layout-tutte primitive.",1777657818257]