JuliaGraphs / JuliaGraphs/MetaGraphsNext.jl

Empty constructor to initialize Metagraphsnext

Open
#65 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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:

  1. With MetaGraphs (working)
using MetaGraphs
     mg1 = MetaGraph() 
  1. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.