Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add graph that can store edge weights #329

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

yamadapc
Copy link
Contributor

@yamadapc yamadapc commented Feb 5, 2025

Add a content graph class that can store edge weights, rather than just node weights

Test Plan: yarn test

Created using spr 1.3.5
yamadapc added a commit that referenced this pull request Feb 5, 2025
Add a content graph class that can store edge weights, rather than just node weights

Test Plan: yarn test

Pull Request: #329
Created using spr 1.3.5
Created using spr 1.3.5
Created using spr 1.3.5
@yamadapc yamadapc requested a review from a team February 6, 2025 02:11
yamadapc added a commit that referenced this pull request Feb 6, 2025
Add a content graph class that can store edge weights, rather than just node weights

Test Plan: yarn test

Pull Request: #329
assert.deepEqual(clonedGraph.nodes, graph.nodes);
assert.deepEqual(clonedGraph.getAllEdges(), graph.getAllEdges());
assert.equal(clonedGraph.getEdgeWeight(a, b), weight1);
assert.equal(clonedGraph.getEdgeWeight(b, c), weight2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe assert that clonedGraph is not the same instance as graph and that adding to clonedGraph does not impact graph

@yamadapc yamadapc merged commit da1500b into main Feb 6, 2025
18 checks passed
@yamadapc yamadapc deleted the spr/yamadapc/add-graph-that-can-store-edge-weights branch February 6, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants