Graph Creation#

Graph creation with create_graph (deprecated)#

Note: The create_graph command below is deprecated and will be removed in a future release. Please use create_graph_with_wmg (see above) instead.

Run python -m neural_lam.create_graph with suitable options to generate the graph you want to use (see python -m neural_lam.create_graph --help for a list of options). The graphs used for the different models in the paper can be created as:

  • GC-LAM: python -m neural_lam.create_graph --config_path <neural-lam-config-path> --name multiscale

  • Hi-LAM: python -m neural_lam.create_graph --config_path <neural-lam-config-path> --name hierarchical --hierarchical (also works for Hi-LAM-Parallel)

  • L1-LAM: python -m neural_lam.create_graph --config_path <neural-lam-config-path> --name 1level --levels 1

The graph-related files are stored in a directory called graph.

Graph storage format#

For a strict, machine-verifiable specification of the graph storage format, see the Graph Storage Specification.