Skip to content

Commit

Permalink
added unregister function for edges
Browse files Browse the repository at this point in the history
  • Loading branch information
dlcole3 committed Aug 21, 2024
1 parent 0e6d239 commit e5af7d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/optiedge.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ function JuMP.delete(graph::OptiGraph, cref::ConstraintRef)
#TODO: Probably need to delete the edge altogether if it is the only constraint on the edge
end

function JuMP.unregister(graph::OptiGraph, key::Symbol)
delete!(object_dictionary(graph), key)
end

### Edge Constraints

# NOTE: could use one method for node and edge
Expand Down

0 comments on commit e5af7d5

Please sign in to comment.