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

Show total weight of path in shortest path algorithm. #2954

Merged
merged 4 commits into from
Feb 15, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Jan 30, 2019

This change adds a field totalWeight to the first node of each path
showing the total weight of the path.

Addresses #2127


This change is Reviewable

This change adds a field _totalWeight_ to the first node of each path
showing the total weight of the path.
@martinmr martinmr self-assigned this Jan 30, 2019
query/query.go Outdated Show resolved Hide resolved
@martinmr martinmr removed the request for review from manishrjain January 30, 2019 19:59
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

Needs simplification.

Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @codexnull and @golangcibot)

Copy link
Contributor Author

@martinmr martinmr left a comment

Choose a reason for hiding this comment

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

  • Removed pathSource field
  • Move the weight out of the params and into the subgraph itself
  • Renamed field to weight

Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @codexnull and @golangcibot)

@martinmr martinmr requested review from a team and removed request for codexnull February 1, 2019 21:21
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @golangcibot and @martinmr)

@martinmr martinmr merged commit 87a6f34 into master Feb 15, 2019
@martinmr martinmr deleted the martinmr/shortest-total-weight branch February 15, 2019 19:57
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
)

This change adds a field _totalWeight_ to the first node of each path showing the total weight of the path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants