rename cnstrs -> constraints
This commit is contained in:
parent
c8c75dc1e7
commit
3d99c0aff9
@ -92,14 +92,14 @@ function orbit_spvector(vect::AbstractVector, orbits)
|
|||||||
return orb_vector
|
return orb_vector
|
||||||
end
|
end
|
||||||
|
|
||||||
function orbit_constraint(cnstrs::Vector{Vector{Vector{Int64}}}, n)
|
function orbit_constraint(constraints::Vector{Vector{Vector{Int64}}}, n)
|
||||||
result = spzeros(n,n)
|
result = spzeros(n,n)
|
||||||
for cnstr in cnstrs
|
for cnstr in constraints
|
||||||
for p in cnstr
|
for p in cnstr
|
||||||
result[p[1],p[2]] += 1.0
|
result[p[2], p[1]] += 1.0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return 1/length(cnstrs)*result
|
return 1/length(constraints)*result
|
||||||
end
|
end
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user