oaklib.utilities.graph.networkx_bridge

Utilities for working with networkx

NetworkX is a popular python package for working with graphs

Functions

mappings_to_graph(mappings)

relationships_to_multi_digraph(relationships)

Converts an OBOGraph to NetworkX

transitive_reduction(relationships)

transitive_reduction_by_predicate(relationships)

Performs a simple transitive reduction of a graph, in which each predicate is treated as independent, and forming its own distinct graph