Fix bug all_paths() with parallel edges

8 jobs for master