JuliaGraphs / JuliaGraphs/MetaGraphsNext.jl
Empty constructor to initialize Metagraphsnext
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 93
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
At the moment MetaGraphs.jl/src/metagraphs.jl has an empty constructor which can be used to implement empty graphs. Also, the package Graphs.jl has empty constructors.
Similarly, can we have an empty constructor at MetaGraphsNext.jl/src/metagraphs.jl for constructing empty graphs of type MetagraphsNext?
Sample code:
- With MetaGraphs (working)
using MetaGraphs
mg1 = MetaGraph()
- With MetaGraphsNext (requesting review)
using MetaGraphsNext
#adding an empty constructor
MetaGraph() = MetaGraph{Int, SimpleGraph{Int}, Symbol, Nothing, Nothing, Nothing, e->1.0, Float64}()
With the help of this constructor we can initialize
using MetaGraphsNext
mg2 = MetaGraph()
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 in MetaGraphsNext.jl/src/metagraphs.jl and compare the existing constructors with the empty constructors in MetaGraphs and Graphs.jl. Confirm that calling MetaGraph() creates an empty MetagraphsNext graph with the intended default types, then verify the sample initialization works.
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
- Clearly specified
- Newbie friendliness
- 45/100