File: bellman_ford_algorithm.cpp.stdout

package info (click to toggle)
seqan2 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 228,748 kB
  • sloc: cpp: 257,602; ansic: 91,967; python: 8,326; sh: 1,056; xml: 570; makefile: 229; awk: 51; javascript: 21
file content (25 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Adjacency list:
0 -> 3,1,
1 -> 3,2,
2 -> 4,
3 -> 4,2,1,
4 -> 2,0,
Edge list:
Source: 0,Target: 3 (Id: 1)
Source: 0,Target: 1 (Id: 0)
Source: 1,Target: 3 (Id: 3)
Source: 1,Target: 2 (Id: 2)
Source: 2,Target: 4 (Id: 4)
Source: 3,Target: 4 (Id: 7)
Source: 3,Target: 2 (Id: 6)
Source: 3,Target: 1 (Id: 5)
Source: 4,Target: 2 (Id: 9)
Source: 4,Target: 0 (Id: 8)

Single-Source Shortest Paths: 
Graph without negative cycles? 1
Path from 0 to 0: 0 (Distance: 0)
Path from 0 to 1: 0,3,1 (Distance: 8)
Path from 0 to 2: 0,3,1,2 (Distance: 9)
Path from 0 to 3: 0,3 (Distance: 5)
Path from 0 to 4: 0,3,4 (Distance: 7)