Skip to content

Commit d1cdaee

Browse files
committed
cosmetics
1 parent 566d86c commit d1cdaee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SimpleGraphs/generators/randgraphs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ end
134134

135135
"maps 1:n*(n-1) into non-diagonal elements of [1,n]×[1,n]"
136136
function nondiagmap(r, n)
137-
j, i = fldmod1(r, n - 1)
138-
i j ? Edge(i + 1, j) : Edge(i, j)
137+
i, j = fldmod1(r, n - 1)
138+
Edge(i + (i j), j)
139139
end
140140

141141
"""

0 commit comments

Comments
 (0)