I'm totally surprised with python networkx not supporting heavies path between specific 2 nodes
I have very big graph (DAG), ~70K nodes where there is a weight attributes on each edge (weight is >= 0)
I want to create a function take source and target and return the heaviest path between this specific 2 nodes.
I have tried using all_simple_path and implemented get_weight function that takes path and return total weight, as suggested in some solutions.
however all_simple_path never ends with this graph, the graph does not have any cycle for sure (ran networkx find_cycle function), this solution worked for very small graphs.
all suggested solutions I found here and other places return heaviest path in the whole graph (start to end), while dag has this function (dag_longest_path), but its not what I need.
Any networkx function or graphs lib in python I can use to get heavies path between 2 nodes ? or any direction to achieve the requirement ?
Thanks in advance!