Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define rem_edge!(::AbstractGraph, ::Pair) #364

Open
mtfishman opened this issue Apr 19, 2024 · 1 comment
Open

Define rem_edge!(::AbstractGraph, ::Pair) #364

mtfishman opened this issue Apr 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mtfishman
Copy link
Contributor

I was surprised to see that rem_edge!(::AbstractGraph, ::Pair) isn't defined:

julia> using Graphs

julia> g = path_graph(4)
{4, 3} undirected simple Int64 graph

julia> rem_edge!(g, 2 => 3)
ERROR: MethodError: no method matching rem_edge!(::SimpleGraph{Int64}, ::Pair{Int64, Int64})

Closest candidates are:
  rem_edge!(::SimpleGraph{T}, ::Graphs.SimpleGraphs.SimpleEdge{T}) where T
   @ Graphs ~/.julia/packages/Graphs/czpTe/src/SimpleGraphs/simplegraph.jl:519
  rem_edge!(::Graphs.SimpleGraphs.AbstractSimpleGraph{T}, ::Integer, ::Integer) where T
   @ Graphs ~/.julia/packages/Graphs/czpTe/src/SimpleGraphs/SimpleGraphs.jl:183

Stacktrace:
 [1] top-level scope
   @ REPL[5]:1

julia> add_edge!(g, 1 => 3)
true

julia> using Pkg; Pkg.status("Graphs")
Status `/private/var/folders/qz/q22pzwm144z9fq57mpf1hfp40000gq/T/jl_gltxtS/Project.toml`
  [86223c79] Graphs v1.10.0
@gdalle
Copy link
Member

gdalle commented Apr 22, 2024

If only for symmetry reasons, I'd accept a PR adding the method. Wanna do it?

@gdalle gdalle added the enhancement New feature or request label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants