nw:load
nw:load file-name default-turtle-breed default-link-breed optional-command-block
Filetype specific variants:
nw:load
nw:load-dl
nw:load-gdf
nw:load-gexf
nw:load-gml
nw:load-vna
Import the given file into NetLogo. Like nw:load-graphml
, the importer will do its best to match node and edge attributes in the file with turtle and link variables in NetLogo. If breed
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.
Limitations:
- 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.
nw:load-graphml
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.
nw:load
determines the file-type of given file based on the extension and calls the corresponding load-*
primitive on it. Note that GraphML must be imported with nw:load-graphml
.
Take me to the full Networks Extension Dictionary