Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Addbellman_ford_path#64

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eriknw merged 2 commits intopython-graphblas:mainfromeriknw:bellman_ford_path
May 4, 2023

Conversation

@eriknw
Copy link
Member

There are several algorithms that return one or more paths, so this PR can help blaze the way to determine how we do this.

I do something different for parent Bellman-Ford by not using UDTs/UDFs. I'm not sure if it's the best way. This also hasn't been benchmarked. YOLO.

Comment on lines +248 to +249
B<<select.valuene(B,False)
Indices<<indexunary.rowindex(B)
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

These two lines could be replaced with

Indices(B.V,replace)<<indexunary.rowindex(B)

but I think it's clearer in two lines (using masking with replace is kind of ugly). I don't know if there is a performance difference.

@eriknw
Copy link
MemberAuthor

YOLO :)

Happy to receive feedback even after merging

@eriknweriknw merged commit7dfd65b intopython-graphblas:mainMay 4, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@eriknw

[8]ページ先頭

©2009-2025 Movatter.jp