@@ -73,20 +73,30 @@ let ``Simple SSSP.`` () =
7373let ``SSSP with recalculation`` () =
7474 let graph =
7575 let clist =
76- Matrix.CoordinateList( 5 UL< nrows>, 5 UL< ncols>,
77- [
78- 0 UL< rowindex>, 1 UL< colindex>, 1.0
79- 1 UL< rowindex>, 2 UL< colindex>, 1.0
80- 2 UL< rowindex>, 3 UL< colindex>, 1.0
81- 2 UL< rowindex>, 4 UL< colindex>, 4.0
82- 3 UL< rowindex>, 4 UL< colindex>, 2.0
83- 0 UL< rowindex>, 3 UL< colindex>, 6.0
84- ])
76+ Matrix.CoordinateList(
77+ 5 UL< nrows>,
78+ 5 UL< ncols>,
79+ [ 0 UL< rowindex>, 1 UL< colindex>, 1.0
80+ 1 UL< rowindex>, 2 UL< colindex>, 1.0
81+ 2 UL< rowindex>, 3 UL< colindex>, 1.0
82+ 2 UL< rowindex>, 4 UL< colindex>, 4.0
83+ 3 UL< rowindex>, 4 UL< colindex>, 2.0
84+ 0 UL< rowindex>, 3 UL< colindex>, 6.0 ]
85+ )
8586
8687 Matrix.fromCoordinateList clist
8788
8889 let expected =
89- let clist = Vector.CoordinateList( 5 UL< dataLength>,[( 0 UL< index>, 0.0 ); ( 1 UL< index>, 1.0 );( 2 UL< index>, 2.0 );( 3 UL< index>, 3.0 );( 4 UL< index>, 5.0 )])
90+ let clist =
91+ Vector.CoordinateList(
92+ 5 UL< dataLength>,
93+ [ ( 0 UL< index>, 0.0 )
94+ ( 1 UL< index>, 1.0 )
95+ ( 2 UL< index>, 2.0 )
96+ ( 3 UL< index>, 3.0 )
97+ ( 4 UL< index>, 5.0 ) ]
98+ )
99+
90100 Result.Success( Vector.fromCoordinateList clist)
91101
92102 let actual = Graph.SSSP.sssp graph 0 UL
0 commit comments