NetworkXError: The graph must be a DiGraph in shortest‑path functions
Problem Context When invoking dijkstra_path or bellman_ford_path on an undirected Graph instance, NetworkX raises the documented error NetworkXError: The graph must be a DiGraph . The functions are designed exclusively for directed graphs, and the exception enforces this precondition. Goal Determine whether there is a planned change that will allow shortest‑