from_jsongraph#

from_jsongraph(filename, project=None)[source]#

Loads the JGF file onto the given project.

Parameters
  • filename (str) – The name of the file containing the data to import. The formatting of this file is outlined below.

  • project (Project) – A GenericNetwork is created and added to the specified Project. If no Project object is supplied then one will be created and returned.

Return type

If no project object is supplied then one will be created and returned.