[{"data":1,"prerenderedAt":323},["ShallowReactive",2],{"/nw/load-matrix":3,"/nw/load-matrix-surround":312},{"id":4,"title":5,"body":6,"description":279,"extension":280,"meta":281,"navigation":299,"path":308,"seo":309,"stem":310,"__hash__":311},"content/nw/load-matrix.md","Networks Extension Dictionary: load-matrix",{"type":7,"value":8,"toc":268},"minimark",[9],[10,11,15,16,15,26,57,71,78,81,84,221,233,239],"div",{"className":12,"id":14},[13],"dict_entry","load-matrix","\n  ",[17,18,20,21,15],"h3",{"id":19},"nwload-matrix","\n    ",[22,23,25],"a",{"href":24},"#load-matrix","nw:load-matrix",[27,28,32],"h4",{"id":29,"className":30},"nwload-matrix-file-name-turtle-breed-link-breed-optional-command-block",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----nwload-matrix-file-name-turtle-breed-link-breed-optional-command-block--",[38,39,42,43,47,48,47,51,47,54],"span",{"className":40},[41],"prim_example","nw:load-matrix ",[44,45,46],"i",{},"file-name"," ",[44,49,50],{},"turtle-breed",[44,52,53],{},"link-breed",[44,55,56],{},"optional-command-block",[58,59,60,61,64,65,67,68,70],"p",{},"Generates a new network according to the connection matrix saved in ",[62,63,46],"em",{},", using ",[62,66,50],{}," and ",[62,69,53],{}," to create the new turtles and links.",[58,72,73,74,77],{},"At the moment, ",[75,76,25],"code",{}," does not support link weights.",[58,79,80],{},"Please be aware that the breeds used to load the matrix may be different from those that you used when you saved it.",[58,82,83],{},"For example:",[85,86,87],"pre",{},[75,88,89,95,96,101,102,95,109,47,113,101,117,47,123,127,129,130,135,129,137,47,141,95,146,47,150,47,155,101,159,129,161,47,165,47,168,171,129,173,47,177,182,129,184,187,129,189,47,192,47,195,47,198,202,129,204,47,208,47,211,215],{},[38,90,94],{"className":91},[92,93],"token","keyword","extensions"," [ ",[38,97,100],{"className":98},[92,99],"variable","nw"," ]",[38,103,105,108],{"className":104},[92,93],[106,107],"br",{},"directed-link-breed",[38,110,112],{"className":111},[92,99],"dirlinks",[38,114,116],{"className":115},[92,99],"dirlink",[38,118,120,122],{"className":119},[92,93],[106,121],{},"to",[38,124,126],{"className":125},[92,99],"go",[106,128],{},"  ",[38,131,134],{"className":132},[92,133],"command","clear-all",[106,136],{},[38,138,140],{"className":139},[92,133],"crt",[38,142,145],{"className":143},[92,144],"number","5",[38,147,149],{"className":148},[92,99],"create-dirlinks-to",[38,151,154],{"className":152},[92,153],"reporter","other",[38,156,158],{"className":157},[92,153],"turtles",[106,160],{},[38,162,164],{"className":163},[92,99],"nw:set-context",[38,166,158],{"className":167},[92,153],[38,169,112],{"className":170},[92,99],[106,172],{},[38,174,176],{"className":175},[92,99],"nw:save-matrix",[38,178,181],{"className":179},[92,180],"string","\"matrix.txt\"",[106,183],{},[38,185,134],{"className":186},[92,133],[106,188],{},[38,190,25],{"className":191},[92,99],[38,193,181],{"className":194},[92,180],[38,196,158],{"className":197},[92,153],[38,199,201],{"className":200},[92,153],"links",[106,203],{},[38,205,207],{"className":206},[92,133],"layout-circle",[38,209,158],{"className":210},[92,153],[38,212,214],{"className":213},[92,144],"10",[38,216,218,220],{"className":217},[92,93],[106,219],{},"end",[58,222,223,224,227,228,232],{},"…",[62,225,226],{},"will"," give you back ",[229,230,231],"strong",{},"undirected"," links, even if you saved directed links into the matrix.",[58,234,235,236,238],{},"If you specify an ",[62,237,56],{},", it is executed for each turtle in the newly created network. For example:",[85,240,241],{},[75,242,243,47,246,47,249,47,252,95,255,47,259,47,263,101],{},[38,244,25],{"className":245},[92,99],[38,247,181],{"className":248},[92,180],[38,250,158],{"className":251},[92,153],[38,253,201],{"className":254},[92,153],[38,256,258],{"className":257},[92,133],"set",[38,260,262],{"className":261},[92,153],"color",[38,264,267],{"className":265},[92,266],"constant","red",{"title":269,"searchDepth":270,"depth":271,"links":272},"",5,3,[273],{"id":19,"depth":271,"text":274,"children":275},"\n    nw:load-matrix\n  ",[276],{"id":29,"depth":277,"text":278},4,"\n    nw:load-matrix file-name turtle-breed link-breed optional-command-block\n  ","Documentation for the load-matrix primitive.","md",{"source":282,"metadataOutputPath":283,"projectConfig":284,"language":292,"inheritFrom":300,"output":299,"version":285,"layout":301,"dictionaryDisplayName":302,"dictionaryHomeDirectory":303,"indexFileURI":304,"currentItemId":14,"currentItemLabel":25,"primRoot":100,"icon":305,"extensionName":306,"assetsRoot":287},"../../external/extensions/nw/nw/load-matrix.md","content/nw/load-matrix.metadata.yaml",{"version":285,"projectRoot":286,"scanRoot":287,"outputRoot":288,"defaults":289,"engine":295,"partials":296,"dedupeIdenticalDiskWrites":299},"7.0.4",".","/home/runner/work/Helio/Helio/external/extensions/nw","content",{"inheritFrom":290,"language":292,"output":293,"extension":280,"title":294,"version":285},[291],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":297,"extensions":298},[286],[295,280],true,[291],"catalog","Networks Extension Dictionary","/nw.html","/_index/extensions/nw.txt","i-lucide-network",{"shortName":100,"fullName":307},"Networks","/nw/load-matrix",{"title":5,"description":279},"nw/load-matrix","KQyawc6wBe1180x5nYpqOLzwJv--o15TWTq5AwdV_7o",[313,318],{"title":314,"path":315,"stem":316,"description":317},"Networks Extension Dictionary: load-graphml","/nw/load-graphml","nw/load-graphml","Documentation for the load-graphml primitive.",{"title":319,"path":320,"stem":321,"description":322},"Networks Extension Dictionary: louvain-communities","/nw/louvain-communities","nw/louvain-communities","Documentation for the louvain-communities primitive.",1777657887295]