NodeLinkImporter#

class eclypse.io.defaults.node_link.NodeLinkImporter[source]#

Bases: NetworkXImporter

Importer for NetworkX node-link JSON files.

Methods

read_data(source, *[, context])

Read a NetworkX graph from node-link JSON.

read_data(source, *, context=None)[source]#

Read a NetworkX graph from node-link JSON.

Parameters:
  • source (str | Path) – The source JSON path.

  • context (IOContext | None) – Optional import/export customisation.

Returns:

The decoded graph.

Return type:

nx.DiGraph