to_digraph
- to_digraph(mappings: Iterable[Mapping]) DiGraph[source]
Convert mappings into a simple directed graph data model.
- Parameters:
mappings – An iterable of mappings
- Returns:
A directed graph in which the nodes are
curies.Referenceobjects. A dictionary of predicate to evidence lists is put under theDIGRAPH_DATA_KEY.
Warning
This function makes two assumptions:
The graph has already been assembled using
assemble_evidences()That only one predicate is used in the graph. If you want to handle multiple prediates, see
to_multidigraph()