Skip to content

Commit

Permalink
Fix check logical expr in _intersection_array
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Dydyshka committed Oct 21, 2024
1 parent 09b26be commit 6d20804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distance_regular/distance_regular.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ end


function _intersection_array(G::AbstractGraph; check::Bool=true)
if check && (!allequal(degree(G)) || isempty(vertices(G)) || is_connected(G))
if check && (!allequal(degree(G)) || isempty(vertices(G)) || !is_connected(G))
return (false, (Int[], Int[]))
end
paths_matrix = mapreduce(hcat, vertices(G)) do vertex
Expand Down

0 comments on commit 6d20804

Please sign in to comment.