Skip to content

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

Merged
krlmlr merged 2 commits intoigraph:mainfrom
schochastics:get_inc_dense
Jan 14, 2025
Merged

refactor: removed for loops from get.incidence.dense() (#1483)#1655
krlmlr merged 2 commits intoigraph:mainfrom
schochastics:get_inc_dense

Conversation

@schochastics
Copy link
Copy Markdown
Contributor

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

(cherry picked commits from #1518)

@aviator-app
Copy link
Copy Markdown
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
Copy Markdown
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!

Comment thread R/conversion.R
@@ -887,18 +886,22 @@ get.incidence.dense <- function(graph, types, names, attr) {
res <- matrix(0, n1, n2)
Copy link
Copy Markdown
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
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants