Skip to content

Commit 17f9e65

Browse files
Add spaces
Co-authored-by: Carlo Lucibello <[email protected]> Add spaces Co-authored-by: Carlo Lucibello <[email protected]> Add spaces Co-authored-by: Carlo Lucibello <[email protected]> Add spaces Co-authored-by: Carlo Lucibello <[email protected]> Add spaces Co-authored-by: Carlo Lucibello <[email protected]>
1 parent 6fbd748 commit 17f9e65

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/GNNGraphs/query.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,11 @@ If the graph is batched from multiple graphs, return the list of the largest eig
424424
function laplacian_lambda_max(g::GNNGraph,T::DataType=Float32;
425425
add_self_loops::Bool=false, dir::Symbol=:out)
426426
if g.num_graphs==1
427-
return _eigmax(normalized_laplacian(g,T;add_self_loops,dir))
427+
return _eigmax(normalized_laplacian(g, T; add_self_loops, dir))
428428
else
429429
eigenvalues=zeros(g.num_graphs)
430430
for i in 1:g.num_graphs
431-
eigenvalues[i]=_eigmax(normalized_laplacian(getgraph(g,i),T;add_self_loops,dir))
431+
eigenvalues[i] = _eigmax(normalized_laplacian(getgraph(g, i), T; add_self_loops, dir))
432432
end
433433
return eigenvalues
434434
end

test/GNNGraphs/query.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@
137137
t = [2, 3, 4, 5, 1, 5, 1, 2, 3, 4]
138138
g = GNNGraph(s,t)
139139
@test laplacian_lambda_max(g) Float32(1.809017)
140-
data1=[g for i in 1:5]
140+
data1 = [g for i in 1:5]
141141
gall1 = Flux.batch(data1)
142142
@test laplacian_lambda_max(gall1) [Float32(1.809017) for i in 1:5]
143-
data2=[rand_graph(10,20) for i in 1:3]
143+
data2 = [rand_graph(10,20) for i in 1:3]
144144
gall2 = Flux.batch(data2)
145-
@test length(laplacian_lambda_max(gall2))==3
145+
@test length(laplacian_lambda_max(gall2)) == 3
146146
end
147147

148148
@testset "adjacency_matrix" begin

0 commit comments

Comments
 (0)