Support of copy constructors?

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

Nobody has claimed this yet.

Assessment

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

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.

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.

Dominant language
Julia
Stars
94
Forks
24
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

  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.

More from JuliaGraphs/MetaGraphsNext.jl

All issues in JuliaGraphs/MetaGraphsNext.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.