[{"data":1,"prerenderedAt":347},["ShallowReactive",2],{"/nw/path-to":3,"/nw/path-to-surround":336},{"id":4,"title":5,"body":6,"description":302,"extension":303,"meta":304,"navigation":322,"path":332,"seo":333,"stem":334,"__hash__":335},"content/nw/path-to.md","Networks Extension Dictionary: path-to",{"type":7,"value":8,"toc":291},"minimark",[9],[10,11,15,16,15,26,47,51,59,62,250,253],"div",{"className":12,"id":14},[13],"dict_entry","path-to","\n  ",[17,18,20,21,15],"h3",{"id":19},"nwpath-to","\n    ",[22,23,25],"a",{"href":24},"#path-to","nw:path-to",[27,28,32],"h4",{"id":29,"className":30},"nwpath-to-target-turtle",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----nwpath-to-target-turtle--",[38,39,42,43],"span",{"className":40},[41],"prim_example","nw:path-to ",[44,45,46],"i",{},"target-turtle",[48,49,50],"p",{},"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.",[48,52,53,54,58],{},"If no path exist between the source and the target turtles, ",[55,56,57],"code",{},"false"," will be reported instead.",[48,60,61],{},"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:",[63,64,65],"pre",{},[55,66,67,73,74,79,80,87,88,92,94,95,100,94,102,87,106,111,94,113,87,117,87,122,73,126,87,130,87,133,79,137,94,139,87,142,87,145,73,148,87,151,87,154,79,158,94,160,87,163,87,166,73,169,87,172,87,175,79,179,94,181,87,184,87,187,73,190,87,193,87,196,79,200,94,202,87,205,87,208,73,211,87,214,87,217,79,220,94,222,87,225,87,228,73,231,87,235,87,238,87,241,79,244],{},[38,68,72],{"className":69},[70,71],"token","keyword","links-own"," [ ",[38,75,78],{"className":76},[70,77],"variable","weight"," ]",[38,81,83,86],{"className":82},[70,71],[84,85],"br",{},"to"," ",[38,89,91],{"className":90},[70,77],"go",[84,93],{},"  ",[38,96,99],{"className":97},[70,98],"command","clear-all",[84,101],{},[38,103,105],{"className":104},[70,98],"create-turtles",[38,107,110],{"className":108},[70,109],"number","5",[84,112],{},[38,114,116],{"className":115},[70,98],"ask",[38,118,121],{"className":119},[70,120],"reporter","turtle",[38,123,125],{"className":124},[70,109],"0",[38,127,129],{"className":128},[70,98],"create-link-with",[38,131,121],{"className":132},[70,120],[38,134,136],{"className":135},[70,109],"1",[84,138],{},[38,140,116],{"className":141},[70,98],[38,143,121],{"className":144},[70,120],[38,146,136],{"className":147},[70,109],[38,149,129],{"className":150},[70,98],[38,152,121],{"className":153},[70,120],[38,155,157],{"className":156},[70,109],"2",[84,159],{},[38,161,116],{"className":162},[70,98],[38,164,121],{"className":165},[70,120],[38,167,125],{"className":168},[70,109],[38,170,129],{"className":171},[70,98],[38,173,121],{"className":174},[70,120],[38,176,178],{"className":177},[70,109],"3",[84,180],{},[38,182,116],{"className":183},[70,98],[38,185,121],{"className":186},[70,120],[38,188,178],{"className":189},[70,109],[38,191,129],{"className":192},[70,98],[38,194,121],{"className":195},[70,120],[38,197,199],{"className":198},[70,109],"4",[84,201],{},[38,203,116],{"className":204},[70,98],[38,206,121],{"className":207},[70,120],[38,209,199],{"className":210},[70,109],[38,212,129],{"className":213},[70,98],[38,215,121],{"className":216},[70,120],[38,218,157],{"className":219},[70,109],[84,221],{},[38,223,116],{"className":224},[70,98],[38,226,121],{"className":227},[70,120],[38,229,125],{"className":230},[70,109],[38,232,234],{"className":233},[70,98],"show",[38,236,25],{"className":237},[70,77],[38,239,121],{"className":240},[70,120],[38,242,157],{"className":243},[70,109],[38,245,247,249],{"className":246},[70,71],[84,248],{},"end",[48,251,252],{},"Will output:",[63,254,255],{},[55,256,257,258,87,261,264,265,269,270,87,274,87,277,280,281,87,284,87,287,290],{},"(",[38,259,121],{"className":260},[70,120],[38,262,125],{"className":263},[70,109],")",[38,266,268],{"className":267},[70,77],":"," [(",[38,271,273],{"className":272},[70,120],"link",[38,275,125],{"className":276},[70,109],[38,278,136],{"className":279},[70,109],") (",[38,282,273],{"className":283},[70,120],[38,285,136],{"className":286},[70,109],[38,288,157],{"className":289},[70,109],")]",{"title":292,"searchDepth":293,"depth":294,"links":295},"",5,3,[296],{"id":19,"depth":294,"text":297,"children":298},"\n    nw:path-to\n  ",[299],{"id":29,"depth":300,"text":301},4,"\n    nw:path-to target-turtle\n  ","Documentation for the path-to primitive.","md",{"source":305,"metadataOutputPath":306,"projectConfig":307,"language":315,"inheritFrom":323,"output":322,"version":308,"layout":324,"dictionaryDisplayName":325,"dictionaryHomeDirectory":326,"indexFileURI":327,"currentItemId":14,"currentItemLabel":25,"primRoot":328,"icon":329,"extensionName":330,"assetsRoot":310},"../../external/extensions/nw/nw/path-to.md","content/nw/path-to.metadata.yaml",{"version":308,"projectRoot":309,"scanRoot":310,"outputRoot":311,"defaults":312,"engine":318,"partials":319,"dedupeIdenticalDiskWrites":322},"7.0.4",".","/home/runner/work/Helio/Helio/external/extensions/nw","content",{"inheritFrom":313,"language":315,"output":316,"extension":303,"title":317,"version":308},[314],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":320,"extensions":321},[309],[318,303],true,[314],"catalog","Networks Extension Dictionary","/nw.html","/_index/extensions/nw.txt","nw","i-lucide-network",{"shortName":328,"fullName":331},"Networks","/nw/path-to",{"title":5,"description":302},"nw/path-to","fkISzgctJeA5w-RNNieiF4yX7DpEM7CkSBb1p-evCEA",[337,342],{"title":338,"path":339,"stem":340,"description":341},"Networks Extension Dictionary: page-rank","/nw/page-rank","nw/page-rank","Documentation for the page-rank primitive.",{"title":343,"path":344,"stem":345,"description":346},"Networks Extension Dictionary: save","/nw/save","nw/save","Documentation for the save primitive.",1777657883093]