Skip to content

254 potential problems with graphweighted outdegrees, fixes #254#290

Merged
IngoScholtes merged 3 commits intomainfrom
254-potential-problems-with-graphweighted_outdegrees
Oct 2, 2025
Merged

254 potential problems with graphweighted outdegrees, fixes #254#290
IngoScholtes merged 3 commits intomainfrom
254-potential-problems-with-graphweighted_outdegrees

Conversation

@IngoScholtes
Copy link
Copy Markdown
Member

@IngoScholtes IngoScholtes commented Oct 2, 2025

The new semantics in this implementation is consistent with the approach used for the Laplacian and adjacency matrix, i.e. there is a single function which can use an arbitrary numerical edge attribute edge_attr for the weighted degree calculation.

Also, Graph.transition_probabilities() now accepts an edge_attr argument, and will calculate unweighted transition probabilities by default.

The new implementation also allows to choose whether a dictionary is returned (default) or a torch.tensor

@IngoScholtes IngoScholtes linked an issue Oct 2, 2025 that may be closed by this pull request
@IngoScholtes IngoScholtes added this to the pathpyG JMLR OSS Paper milestone Oct 2, 2025
@IngoScholtes IngoScholtes self-assigned this Oct 2, 2025
@IngoScholtes IngoScholtes added enhancement New feature or request refactor Change in the internal code structure but no change in functionality labels Oct 2, 2025
@IngoScholtes IngoScholtes merged commit 61c6f6e into main Oct 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request refactor Change in the internal code structure but no change in functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Potential problems with Graph.weighted_outdegrees

1 participant