IORegistry.get_importer#

IORegistry.get_importer(kind, format)[source]

Return the importer class registered for a graph kind and format.

Parameters:
  • kind (GraphKind) – The graph kind, such as "infrastructure".

  • format (str) – The IO format, such as "gml".

Returns:

The registered importer class.

Return type:

type[GraphImporter]

Raises:

ValueError – If no importer is registered for the pair.