-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBellmanFordAlgorithm.xml
More file actions
73 lines (73 loc) · 2.76 KB
/
Copy pathBellmanFordAlgorithm.xml
File metadata and controls
73 lines (73 loc) · 2.76 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="UTF-8"?>
<SingleSourceShortestPath>
<vertices size="5">
<vertex id="0"/>
<vertex id="1"/>
<vertex id="2"/>
<vertex id="3"/>
<vertex id="4"/>
</vertices>
<iterations>
<shortestPath queuedElement="1">
<path distance="-3.0" parent="5"/>
<path distance="\infty"/>
<path distance="3.0" parent="5"/>
<path distance="2.0" parent="5"/>
<path distance="4.0" parent="5"/>
</shortestPath>
<shortestPath queuedElement="2">
<path distance="-3.0" parent="5"/>
<path distance="0.0" parent="3"/>
<path distance="3.0" parent="5"/>
<path distance="0.0" parent="2"/>
<path distance="3.0" parent="0"/>
</shortestPath>
<shortestPath queuedElement="3">
<path distance="-4.0" parent="1"/>
<path distance="-2.0" parent="3"/>
<path distance="3.0" parent="5"/>
<path distance="0.0" parent="2"/>
<path distance="3.0" parent="0"/>
</shortestPath>
<shortestPath queuedElement="4">
<path distance="-6.0" parent="1"/>
<path distance="-2.0" parent="3"/>
<path distance="3.0" parent="5"/>
<path distance="0.0" parent="2"/>
<path distance="2.0" parent="0"/>
</shortestPath>
<shortestPath queuedElement="5">
<path distance="-6.0" parent="1"/>
<path distance="-2.0" parent="3"/>
<path distance="3.0" parent="5"/>
<path distance="0.0" parent="2"/>
<path distance="0.0" parent="0"/>
</shortestPath>
</iterations>
<graphml>
<graph edgedefault="directed" type="digraph">
<node id="n1" label="0" x="3.471" y="-1.527"/>
<node id="n2" label="1" x="3.471" y="-3.511"/>
<node id="n3" label="2" x="3.471" y="-5.548"/>
<node id="n4" label="3" x="6.488" y="-4.49"/>
<node id="n5" label="4" x="6.488" y="-2.532"/>
<node id="n6" label="5" x="9.478" y="-3.511"/>
<edge source="n5" target="n1" weight="6.0"/>
<edge source="n1" target="n2" weight="-4.0"/>
<edge source="n3" target="n6" weight="3.0">
<controlpoint x="7.324" y="-7.771"/>
</edge>
<edge source="n1" target="n6" weight="-3.0">
<controlpoint x="7.473" y="0.442"/>
</edge>
<edge source="n2" target="n5" weight="-1.0"/>
<edge source="n3" target="n2" weight="8.0"/>
<edge source="n4" target="n3" weight="-3.0">
<controlpoint x="5.003" y="-5.039"/>
</edge>
<edge source="n4" target="n6" weight="2.0"/>
<edge source="n5" target="n6" weight="4.0"/>
<edge source="n2" target="n4" weight="-2.0"/>
</graph>
</graphml>
</SingleSourceShortestPath>