Summation of the edge weights in negative cycles is negative. With this concept, is there any method to generate graphs with random positive and negative edge weight, and without negative cycle? Such graphs are useful for testing the bellman_ford_shortest_paths
method.
Note: In this post they generate graph without those conditions with boost
library.