-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
enhancementNew feature or requestNew feature or request
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()
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request