biocypher.output.write.graph._networkx._NetworkXWriter

class biocypher.output.write.graph._networkx._NetworkXWriter(*args, **kwargs)

Class for writing node and edges to a networkx DiGraph.

__init__(*args, **kwargs)

Abstract class for writing node and edge representations to disk.

Parameters:
  • translator (Translator) – Instance of Translator to enable translation of nodes and manipulation of properties.

  • deduplicator (Deduplicator) – Instance of Deduplicator to enable deduplication of nodes and edges.

  • output_directory (str, optional) – Path for exporting CSV files. Defaults to None.

  • strict_mode (bool, optional) – Whether to enforce source, version, and license properties. Defaults to False.

strict_mode (bool, optional): Whether to enforce source, version, and license properties. Defaults to False.

Methods

__init__(*args, **kwargs)

Abstract class for writing node and edge representations to disk.

add_to_networkx()

write_edges(edges[, batch_size, force])

Wrapper for writing edges.

write_import_call()

Function to output.write the import call detailing folder and individual node and edge headers and data files, as well as delimiters and database name, to the export folder as txt.

write_nodes(nodes[, batch_size, force])

Wrapper for writing nodes.