JuliaGraphs / JuliaGraphs/MetaGraphs.jl
default values for `get_prop`
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 70
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Similar to Julia's Base.get would be nice to have get_prop(mgr::AbstractMetaGraph, v, defaultvalue), get_prop(mgr::AbstractMetaGraph, n1, n2, defaultvalue) and so on.
The implementation should be super easy. Just checking with has_prop and act appropriately.
Personally I would find that useful. Other opinions ?
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
Locate the existing get_prop and has_prop definitions and inspect their current overloads for metadata lookup. Add the requested default-value forms consistently, then verify that missing properties return the supplied default while existing properties retain their current behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100