JuliaGraphs / JuliaGraphs/SimpleWeightedGraphs.jl
No `reverse` implementation for SimpleWeightedDiGraph?
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 41
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
I get a MethodError with
(@v1.11) pkg> st -m Graphs SimpleWeightedGraphs
Status `~/.julia/environments/v1.11/Manifest.toml`
[86223c79] Graphs v1.12.0
[47aef6b3] SimpleWeightedGraphs v1.4.0
julia> reverse(subgraph)
ERROR: MethodError: no method matching reverse(::SimpleWeightedDiGraph{Int64, Float64})
The function `reverse` exists, but no method is defined for this combination of argument types.
Closest candidates are:
reverse(::DimensionalData.Dimensions.Lookups.ReverseOrdered)
@ DimensionalData ~/.julia/dev/DimensionalData/src/Lookups/methods.jl:18
reverse(::DimensionalData.Dimensions.Lookups.Unordered)
@ DimensionalData ~/.julia/dev/DimensionalData/src/Lookups/methods.jl:20
reverse(::DimensionalData.Dimensions.Lookups.ForwardOrdered)
@ DimensionalData ~/.julia/dev/DimensionalData/src/Lookups/methods.jl:19
...
Stacktrace:
[1] top-level scope
@ REPL[159]:1
Is this a sufficiently simple implementation that anyone (aka me) can do it? Or are there some other considerations?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the MethodError with reverse(subgraph) in the Julia REPL using Graphs v1.12.0 and SimpleWeightedGraphs v1.4.0, then locate the existing SimpleWeightedDiGraph methods and the corresponding Graphs.jl reverse API. Done means the reported call has a defined reverse implementation and coverage demonstrates the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100