NetworkX: Find longest path in DAG returning all ties for max
问题 I'm having trouble figuring out how to update the networkx dag_find_longest_path() algorithm to return "N" for ties instead of returning the first max edge found, or returning a list of all edges that are tied for max weight. I first created a DAG from pandas dataframe that contains an edgelist like the following subset: edge1 edge2 weight 115252161:T 115252162:A 1.0 115252162:A 115252163:G 1.0 115252163:G 115252164:C 3.0 115252164:C 115252165:A 5.5 115252165:A 115252166:C 5.5 115252162:T