grapher.to_networkx()

Convert a dependency graph to a NetworkX DiGraph.

Usage

Source

grapher.to_networkx(
    graph, *, include_formula_on_nodes=True, max_formula_length=120
)

Accepts DependencyGraph or any graph-like object with node iteration, dependency lookup, and edge attributes (for example ProjectionResult).

NetworkX is an optional dependency. If not installed, raises ImportError with a helpful message.