rename cnstrs -> constraints

This commit is contained in:
kalmar 2017-06-21 16:46:49 +02:00
parent c8c75dc1e7
commit 3d99c0aff9

View File

@ -92,14 +92,14 @@ function orbit_spvector(vect::AbstractVector, orbits)
return orb_vector
end
function orbit_constraint(cnstrs::Vector{Vector{Vector{Int64}}}, n)
function orbit_constraint(constraints::Vector{Vector{Vector{Int64}}}, n)
result = spzeros(n,n)
for cnstr in cnstrs
for cnstr in constraints
for p in cnstr
result[p[1],p[2]] += 1.0
result[p[2], p[1]] += 1.0
end
end
return 1/length(cnstrs)*result
return 1/length(constraints)*result
end
###############################################################################