Pometry / Pometry/Raphtory

Change `explode` and `explode_layers` to use graph views instead of magic options on the edge ref

Open
#1,458 1 comment 0 reactions 2 assignees View on GitHub

@ljeub-pometry is already working on this.

Since Dec 9, 2024.

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

Description

The fact that edges have two ways of specifying time and layer bounds causes a bunch of weird inconsistencies, e.g.:

        let g = Graph::new();
        let e1 = g.add_edge(0, 1, 2, NO_PROPS, Some("1")).unwrap();
        let e2 = g.add_edge(1, 1, 3, NO_PROPS, Some("2")).unwrap();

        assert!(e1.has_layer("2"));
        assert!(e1.layers("2").unwrap().history().is_empty());

currently passes even though e1 is a view of the edge in layer "1"

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.