JuliaGraphs / JuliaGraphs/MetaGraphsNext.jl

Support of copy constructors?

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

Nobody has claimed this yet.

Dominant language
Julia
Stars
93
Forks
24
PR merge metrics
No merged PRs in 30d

Description

I have a graph which I would like to copy and change one aspect of it (e.g. weight function). However, it seems like MetaGraph doesn't have a copy constructor:

MetaGraph(graph)
# UndefKeywordError: keyword argument `label_type` not assigned

It would be great if something like that is added. Or alternatively, provide a way to create different views of the same graph with different properties.

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

Begin at the MetaGraph(graph) constructor entry point and reproduce the missing label_type error. Clarify whether the expected completion is a copy constructor or alternate views, then define and test the chosen behavior for changing graph properties without mutating the original.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.