decomp.graph.nx¶
Module for converting from networkx to RDF
- class decomp.graph.nx.NXConverter(rdfgraph)¶
A converter between RDFLib graphs and NetworkX digraphs
- Parameters
graph – the graph to convert
- classmethod rdf_to_networkx(rdfgraph)¶
Convert an RDFLib graph to a NetworkX digraph
- Parameters
rdfgraph (
Graph
) – the RDFLib graph to convert- Return type
DiGraph