to_multidigraph

to_multidigraph(mappings: Iterable[Mapping], *, progress: bool = False) MultiDiGraph[source]

Convert mappings into a multi directed graph data model.

Parameters:
  • mappings – An iterable of mappings

  • progress – Should a progress bar be shown?

Returns:

A directed graph in which the nodes are curies.Reference objects. The predicate is used as the edge key and the evidences are stored in a list under the MULTIDIGRAPH_DATA_KEY in each edge data dictionary.

Warning

This function makes the following assumptions:

  1. The graph has already been assembled using assemble_evidences()