Provide optional weights and metadata in one graph type
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
The issue names no files, tests, or entry points. Begin by locating the existing Graph, WeightedGraph, and MetaGraph definitions and reviewing their Julia type parameters; done would require an agreed design and a compatible unified graph API.
Written by the indexing model from the issue text.
Description
I think it's worth considering having one Graph type that can optionally include weights and metadata for an undirected graph, rather than having separate WeightedGraph and MetaGraph types. The Graph constructor could have various optional type parameters, so you could create empty graphs like this:
# Create a graph with `Any` vertex type, Float64 edge weights,
# and no metadata.
Graph()
# Char graph with Float64 edge weights:
Graph{Char}()
# Char graph with Int weights:
Graph{Char, Int}()
# Char graph with Float64 edge weights and
# vertex data of type MyVertexData:
Graph{Char, Float64, MyVertexData}()
# Char graph with Float64 edge weights,
# vertex data of type MyVertexData,
# and edge data of type MyEdgeData:
Graph{Char, Float64, MyVertexData, MyEdgeData}()
# Char graph with Float64 edge weights,
# no vertex data, and edge data of type MyEdgeData:
Graph{Char, Float64, Nothing, MyEdgeData}()
Nothing would be an option for the metadata type parameters, but not for the vertex type and weight type. (Default weight type would probably be Float64.)
- Dominant language
- Julia
- Stars
- 11
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from JuliaGraphs/GraphsBase.jl
-
Constructors for 2.0Openquestion
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaGraphs/GraphsBase.jl#34 ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 15/100
JuliaGraphs/GraphsBase.jl#28 ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 22/100
JuliaGraphs/GraphsBase.jl#26 · 6 comments · 2 reactions ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaGraphs/GraphsBase.jl#25 · 3 comments · 1 reaction ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaGraphs/GraphsBase.jl#24 ·
All issues in JuliaGraphs/GraphsBase.jl
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
JuliaStats/LogExpFunctions.jl#134 · 2 comments ·
-
code bug PowerSystems 6.0
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Sienna-Platform/PowerSystems.jl#1849 ·
Maintainers usually reply within 7 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FluxML/Metalhead.jl#407 ·
Maintainers usually reply within 1 day