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

refactor: removed for loops from get.incidence.dense() (#1483) #1655

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

schochastics
Copy link
Contributor

This PR removes (nested) for loops get.incidence.dense() when attr != NULL

(cherry picked commits from #1518)

Copy link
Contributor

aviator-app bot commented Jan 9, 2025

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged manually (without Aviator). Merging manually can negatively impact the performance of the queue. Consider using Aviator next time.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

@schochastics schochastics requested a review from krlmlr January 10, 2025 10:23
Copy link
Contributor

@krlmlr krlmlr left a comment

Choose a reason for hiding this comment

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

Thanks, nice!

@@ -887,18 +886,22 @@ get.incidence.dense <- function(graph, types, names, attr) {
res <- matrix(0, n1, n2)
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens with non-numeric attributes?

@krlmlr krlmlr changed the title refactor: removed for loops from get.incidence.dense (#1483) refactor: removed for loops from get.incidence.dense() (#1483) Jan 14, 2025
@krlmlr krlmlr merged commit c258ae5 into igraph:main Jan 14, 2025
17 checks passed
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