1function test70_plot (T, Nedges, Nnodes) 2%TEST70_PLOT plot the results from test70 3 4% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 5% SPDX-License-Identifier: Apache-2.0 6 7if (nargin == 0) 8 load test70_results 9 % load test70_results_big 10end 11 12k = max (find (~isnan (Nnodes))) ; 13 14subplot (3,4,1) 15loglog ( ... 16 Nedges (1:k), T (1:k,1), 'ro', ... 17 Nedges (1:k), T (1:k,2), 'bo', ... 18 Nedges (1:k), T (1:k,3), 'ko', ... 19 Nedges (1:k), T (1:k,4), 'go', ... 20 Nedges (1:k), T (1:k,5), 'co', ... 21 Nedges (1:k), T (1:k,6), 'mo', ... 22 Nedges (1:k), T (1:k,7), 'ro', ... 23 Nedges (1:k), T (1:k,8), 'b+', ... 24 Nedges (1:k), T (1:k,9), 'k+', ... 25 Nedges (1:k), T (1:k,10),'g+', ... 26 Nedges (1:k), T (1:k,11),'c+', ... 27 Nedges (1:k), T (1:k,12),'m+') ; 28legend ( ... 29'MATLAB:minitri', ... 30'MATLAB:Burkhardt', ... 31'MATLAB:Cohen', ... 32'MATLAB:Sandia', ... 33'MATLAB:SandiaL', ... 34'MATLAB:SandiaDot', ... 35'GB:minitri', ... 36'GB:Burkhardt', ... 37'GB:Cohen', ... 38'GB:Sandia', ... 39'GB:SandiaL', ... 40'GB:SandiaDot', ... 41'Location', 'NorthWest') 42 43xlabel ('# of edges') ; 44ylabel ('run time') ; 45 46e = max (Nedges (1:k)) ; 47 48subplot (3,4,2) 49loglog (Nedges (1:k), T (1:k,1) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 50xlabel ('# of edges') ; 51ylabel ('MATLAB:minitri time / GB:SandiaL time') ; 52 53subplot (3,4,3) 54loglog (Nedges (1:k), T (1:k,2) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 55xlabel ('# of edges') ; 56ylabel ('MATLAB:Burkhardt time / GB:SandiaL time') ; 57 58subplot (3,4,4) 59loglog (Nedges (1:k), T (1:k,3) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 60xlabel ('# of edges') ; 61ylabel ('MATLAB:Cohen time / GB:SandiaL time') ; 62 63subplot (3,4,5) 64loglog (Nedges (1:k), T (1:k,4) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 65xlabel ('# of edges') ; 66ylabel ('MATLAB:Sandia time / GB:SandiaL time') ; 67 68subplot (3,4,6) 69loglog (Nedges (1:k), T (1:k,5) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 70xlabel ('# of edges') ; 71ylabel ('MATLAB:SandiaL time / GB:SandiaL time') ; 72 73subplot (3,4,7) 74loglog (Nedges (1:k), T (1:k,6) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 75xlabel ('# of edges') ; 76ylabel ('MATLAB:SandiaDot time / GB:SandiaL time') ; 77 78%------------------------------------------------------------------------------- 79 80subplot (3,4,8) 81loglog (Nedges (1:k), T (1:k,7) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 82xlabel ('# of edges') ; 83ylabel ('GB:minitri time / GB:SandiaL time') ; 84 85subplot (3,4,9) 86loglog (Nedges (1:k), T (1:k,8) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 87xlabel ('# of edges') ; 88ylabel ('GB:Burkhardt time / GB:SandiaL time') ; 89 90subplot (3,4,10) 91loglog (Nedges (1:k), T (1:k,9) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 92xlabel ('# of edges') ; 93ylabel ('GB:Cohen time / GB:SandiaL time') ; 94 95subplot (3,4,11) 96loglog (Nedges (1:k), T (1:k,10) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 97xlabel ('# of edges') ; 98ylabel ('GB:Sandia time / GB:SandiaL time') ; 99 100subplot (3,4,12) 101loglog (Nedges (1:k), T (1:k,12) ./ T (1:k,11), 'ko', [1 e], [1 1], 'k-') ; 102xlabel ('# of edges') ; 103ylabel ('GB:SandiaDot time / GB:SandiaL time') ; 104 105drawnow 106 107