Skip to content

Package to convert network diagrams between different formats

License

Notifications You must be signed in to change notification settings

ScotGovAnalysis/alternet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alternet

Package to convert network diagrams between different formats.


Supported formats

  • Kumu
  • Decision Explorer
  • Stella

Supported characteristics

  • Node name
  • Node position
  • Node type
  • Edge polarity
  • Styles for node types

Getting Started

Once cloned, open up the project, and load the package with:

devtools::load_all()

Documentation is available for the package functions, e.g.

?import_from_kumu_json

Example

devtools::load_all()

network = import_from_kumu_json("inst/extdata/example_network.json")

network %>% export_to_decision_explorer()

Getting data from original software

The import functions work directly on save files produced by Stella (".stmx") and Decision Explorer (".demx"). You can also use the files produced using the Decision Explorer export facility ("mdx").

For Stella, you can either import from a causal loop diagram, in which case the variables will be interpreted as nodes, or from a stock and flow model, in which case the modules will be interpreted as nodes. See the documentation for import_from_stella_xml.

For Kumu, see the documentation on exporting data as json, click the download icon in the lower right corner of the map and choose "Export to JSON".


Using exported data in the new software

For Stella, simply open the new stmx file in Stella.

For Kumu, see import instructions on the Kumu website.

For Decision Explorer, create a new, blank model, go to "File -> Import" and choose the file you want to import.

About

Package to convert network diagrams between different formats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages