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.Referenceobjects. The predicate is used as the edge key and the evidences are stored in a list under theMULTIDIGRAPH_DATA_KEYin each edge data dictionary.
Warning
This function makes the following assumptions:
The graph has already been assembled using
assemble_evidences()