Pometry / Pometry/Raphtory

`AsNodeRef` as currently implemented encourages problems, can insert node that is not local to the graph

Open
#1,699 1 comment 0 reactions 1 assignee View on GitHub

@fabianmurariu is already working on this.

Since Aug 8, 2024.

Rust Core
Dominant language
Rust
Stars
642
Forks
70
Avg merge
2d 13h
Merged PRs (30d)
21

Description

          `AsNodeRef` as currently implemented encourages problems as it means that if we use a node from a different graph to insert it into an existing graph, it will use the local id which is likely nonsense. We should fix this in `NodeRef` so it keeps the NodeView around when created from a node which now should allow us to check if the node is local to the graph or not and act accordingly.

Originally posted by @ljeub-pometry in https://github.com/Pometry/Raphtory/pull/1695#discussion_r1691361991

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.