Skip to content

Commit 38cbf7f

Browse files
committed
deprecate GraphProblem, chweights,ZeroWeight and UnitWeight
1 parent 1eaef5c commit 38cbf7f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/deprecate.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
@deprecate Independence(args...; kwargs...) IndependentSet(args...; kwargs...)
22
@deprecate MaximalIndependence(args...; kwargs...) MaximalIS(args...; kwargs...)
3-
@deprecate NoWeight() UnitWeight()
3+
@deprecate UnitWeight() error("UnitWeight() is deprecated. Please Use UnitWeight(::Int) instead.")
4+
@deprecate ZeroWeight() error("ZeroWeight() is deprecated. Please Use ZeroWeight(::Int) instead.")
45
@deprecate HyperSpinGlass(args...; kwargs...) SpinGlass(args...; kwargs...)
56

67
@deprecate nflavor(args...; kwargs...) num_flavors(args...; kwargs...)
78
@deprecate labels(args...; kwargs...) variables(args...; kwargs...)
89
@deprecate get_weights(args...; kwargs...) weights(args...; kwargs...)
10+
@deprecate chweights(args...; kwargs...) set_weights(args...; kwargs...)
11+
12+
@deprecate GraphProblem() ConstraintSatisfactionProblem()

0 commit comments

Comments
 (0)